Skip to content

Commit d5245e4

Browse files
committed
[FrameworkBundle] Fix descriptor of routes described as callable array
1 parent af79c9b commit d5245e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Console/Descriptor/TextDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ private function formatControllerLink($controller, string $anchorText): string
540540

541541
try {
542542
if (\is_array($controller)) {
543-
$r = new \ReflectionMethod($controller);
543+
$r = new \ReflectionMethod($controller[0], $controller[1]);
544544
} elseif ($controller instanceof \Closure) {
545545
$r = new \ReflectionFunction($controller);
546546
} elseif (method_exists($controller, '__invoke')) {

0 commit comments

Comments
 (0)