-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
PHPStan 1.12.4 will ship with a Output::isDecorated method.
We should check if isDecorated
method exists on $output
. Then check if the output is decorated or not. If the method does not exist, we should assume the output is decorated.
When the output is not decorated, we should pick LINK_FORMAT_WITHOUT_EDITOR
for the link:
phpstan-error-formatter/src/TicketSwapErrorFormatter.php
Lines 127 to 129 in fa5f462
if ($editorUrl === null) { | |
$format = self::LINK_FORMAT_WITHOUT_EDITOR; | |
} |
The result will be that when --no-ansi
is used, the links are not truncated.
Metadata
Metadata
Assignees
Labels
No labels