Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Nov 17, 2025

@staabm staabm marked this pull request as ready for review November 17, 2025 06:58
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 284078f into phpstan:2.1.x Nov 17, 2025
593 of 635 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the de-dup branch November 17, 2025 08:06
@ondrejmirtes
Copy link
Member

Hey, I merged this too soon, there are some problems including CS and failing tests :)

@staabm
Copy link
Contributor Author

staabm commented Nov 17, 2025

Hey,

cs fix is here - the test errors seem pre-existing/unrelated to this PR.
seem GNSR related

@claudepache
Copy link
Contributor

What should happen when there are two identical errors on the same line?

https://phpstan.org/r/0a335da3-97dc-4ad7-9265-813ce48b1b7a

@staabm
Copy link
Contributor Author

staabm commented Nov 18, 2025

This PR affects only runtime php warnings/errors, which are not very likely to happen at all while running static analysis.

It does not affect regular phpstan errors.

I think its fine that we have each runtime warning/error only once per line, as such codes with multiple statements per line is also super rare.

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.

php warnings get multiplied and finally lead to out of memory crash

4 participants