Add statement to fileLink to ignore href code when no fileLink.
This commit is contained in:
parent
c45c6e50e1
commit
b9eab42823
@ -557,10 +557,13 @@ class TextDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
$fileLink = $this->fileLinkFormatter->format($r->getFileName(), $r->getStartLine());
|
||||
|
||||
if ($fileLink) {
|
||||
return sprintf('<href=%s>%s</>', $fileLink, $anchorText);
|
||||
}
|
||||
|
||||
return $anchorText;
|
||||
}
|
||||
|
||||
private function formatCallable($callable): string
|
||||
{
|
||||
if (\is_array($callable)) {
|
||||
|
Reference in New Issue
Block a user