Skip to content

Commit 3383bd7

Browse files
author
Mateusz Lerczak
committed
Add statement to fileLink to ignore href code when no fileLink.
1 parent a5eca69 commit 3383bd7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Console/Descriptor/TextDescriptor.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,11 @@ private function formatControllerLink($controller, string $anchorText): string
557557
}
558558

559559
$fileLink = $this->fileLinkFormatter->format($r->getFileName(), $r->getStartLine());
560+
if ($fileLink) {
561+
return sprintf('<href=%s>%s</>', $fileLink, $anchorText);
562+
}
560563

561-
return sprintf('<href=%s>%s</>', $fileLink, $anchorText);
564+
return $anchorText;
562565
}
563566

564567
private function formatCallable($callable): string

0 commit comments

Comments
 (0)