From 67bd779ef4605bb5e8b01e4adb97261064d64471 Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Fri, 4 Dec 2020 19:08:02 +0100 Subject: [PATCH] =?UTF-8?q?[FrameworkBundle]=20TextDescriptor::formatContr?= =?UTF-8?q?ollerLink=20checked=20method=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FrameworkBundle/Console/Descriptor/TextDescriptor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php index ee5e97c203..a2af0c7949 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php @@ -504,7 +504,9 @@ class TextDescriptor extends Descriptor } try { - if (\is_array($controller)) { + if (null === $controller) { + return $anchorText; + } elseif (\is_array($controller)) { $r = new \ReflectionMethod($controller[0], $controller[1]); } elseif ($controller instanceof \Closure) { $r = new \ReflectionFunction($controller);