[FrameworkBundle] TextDescriptor::formatControllerLink checked method…
This commit is contained in:
parent
626d61ee7d
commit
67bd779ef4
|
@ -504,7 +504,9 @@ class TextDescriptor extends Descriptor
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (\is_array($controller)) {
|
if (null === $controller) {
|
||||||
|
return $anchorText;
|
||||||
|
} elseif (\is_array($controller)) {
|
||||||
$r = new \ReflectionMethod($controller[0], $controller[1]);
|
$r = new \ReflectionMethod($controller[0], $controller[1]);
|
||||||
} elseif ($controller instanceof \Closure) {
|
} elseif ($controller instanceof \Closure) {
|
||||||
$r = new \ReflectionFunction($controller);
|
$r = new \ReflectionFunction($controller);
|
||||||
|
|
Reference in New Issue