From a1c612aedffe46589f5cb97501ca89dfc8b2e39f Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 12 Dec 2018 18:02:13 +0100 Subject: [PATCH] [FrameworkBundle] fix describing routes with no controllers --- .../FrameworkBundle/Console/Descriptor/TextDescriptor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php index 9846a9a90fec..d91743e5c0da 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php @@ -56,7 +56,7 @@ protected function describeRouteCollection(RouteCollection $routes, array $optio if ($showControllers) { $controller = $route->getDefault('_controller'); - $row[] = $this->formatCallable($controller); + $row[] = $controller ? $this->formatCallable($controller) : ''; } $tableRows[] = $row;