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