Skip to content

Check if output is decorated #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Check if output is decorated #9

merged 2 commits into from
Sep 23, 2024

Conversation

ruudk
Copy link
Member

@ruudk ruudk commented Sep 23, 2024

When the output is not decorated (--no-ansi), we can skip highlighting the error, as it won't have any effect anyway.

The filenames will not be clickable and therefore we don't have to trim them.

Since Output::isDecorated was recently introduced in PHPStan we need to bump the minimum requirement to 1.12.4

Fixes #8

When the output is not decorated (`--no-ansi`), we can skip highlighting the error,
as it won't have any effect anyway.

The filenames will not be clickable and therefore we don't have to trim them.

Since `Output::isDecorated` was recently introduced in PHPStan we need to bump the minimum
requirement to `1.12.4`
@ruudk ruudk merged commit f93b096 into main Sep 23, 2024
1 check passed
@ruudk ruudk deleted the is-decorated branch September 23, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show absolute file links when output is not decorated
1 participant