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

Merged
merged 4 commits into from
Apr 21, 2025

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

@staabm staabm force-pushed the color-types branch 2 times, most recently from 83c7eca to e7507f0 Compare April 20, 2025 06:25
@ondrejmirtes ondrejmirtes merged commit 97281a7 into phpstan:2.1.x Apr 21, 2025
415 of 417 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the color-types branch April 21, 2025 08:58
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