Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a02bca9

Browse files
committed
Remove Closure::fromCallable
1 parent 3c49db7 commit a02bca9

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)