8000 Remove Closure::fromCallable · symfony/symfony@b1e36f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1e36f1

Browse files
committed
Remove Closure::fromCallable
1 parent ef68406 commit b1e36f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8484
$routes = $this->router->getRouteCollection();
8585
$container = null;
8686
if ($this->fileLinkFormatter) {
87-
$container = \Closure::fromCallable(function () {
87+
$container = function () {
8888
return $this->getContainerBuilder($this->getApplication()->getKernel());
89-
});
89+
};
9090
}
9191

9292
if ($name) {

0 commit comments

Comments
 (0)
0