Skip to content

Bump to PHPStan 2.3 - #8529

Closed
TomasVotruba wants to merge 2 commits into
mainfrom
bump-phpstan-2.3
Closed

TomasVotruba wants to merge 2 commits into
mainfrom
bump-phpstan-2.3

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Bumps phpstan/phpstan to ^2.3.

PHPStan 2.3 flags a provably-dead $removeStmtKeys === [] guard in RemoveUselessAssignFromPropertyPromotionRector (the array is always non-empty at that point, since the earlier loop either returns early or appends on every iteration over non-empty stmts). Removed the dead check.

@samsonasik

Copy link
Copy Markdown
Member

I already created PR #8528 for it.

@TomasVotruba

Copy link
Copy Markdown
Member Author

I see, I'll leave you to it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants