Skip to content

Commit 1e24466

Browse files
Frank Jogeleitfabpot
authored andcommitted
[FrameworkBundle] TextDescriptor::formatControllerLink checked method…
1 parent 3aea107 commit 1e24466

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Console/Descriptor/TextDescriptor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,9 @@ private function formatControllerLink($controller, string $anchorText): string
504504
}
505505

506506
try {
507-
if (\is_array($controller)) {
507+
if (null === $controller) {
508+
return $anchorText;
509+
} elseif (\is_array($controller)) {
508510
$r = new \ReflectionMethod($controller[0], $controller[1]);
509511
} elseif ($controller instanceof \Closure) {
510512
$r = new \ReflectionFunction($controller);

0 commit comments

Comments
 (0)