Skip to content

TableErrorFormatter: visually differentiate phpstan assertion errors from rule errors #3951

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

Open
wants to merge 3 commits into
base: 2.1.x
Choose a base branch
from

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Apr 19, 2025

before this PR

grafik

after this PR

grafik

@staabm staabm marked this pull request as ready for review April 19, 2025 09:58
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes
Copy link
Member

Green isn't the right choice when it's an error :)


if (
$error->getIdentifier() !== null
&& in_array($error->getIdentifier(), ['phpstan.type', 'phpstan.nativeType', 'phpstan.variable'], true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also would make sense for phpstan.dumpType and phpstan.unknownExpectation.

@staabm
Copy link
Contributor Author

staabm commented Apr 19, 2025

Green isn't the right choice when it's an error :)

hehe.. I am too positive about my errors ;)

updated the impl and the screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants