Skip to content

Rely on RuleLevelHelper in InvalidKeyInArrayItemRule - #4379

Merged
ondrejmirtes merged 1 commit into
phpstan:2.1.xfrom
VincentLanglet:invalidKeys
Oct 2, 2025
Merged

ondrejmirtes merged 1 commit into
phpstan:2.1.xfrom
VincentLanglet:invalidKeys

Conversation

@VincentLanglet

@VincentLanglet VincentLanglet commented Sep 27, 2025 •

Copy link
Copy Markdown
Contributor

This change is extracted from #4012

I feel like it will help for phpstan/phpstan#13592 @ondrejmirtes by having a consistent behavior in code like
https://phpstan.org/r/43149492-9d7a-4d88-9f19-208b12d262b3 (currently mixed is reported only for one rule but not the other)

Similar to #4166

@VincentLanglet
VincentLanglet marked this pull request as ready for review September 27, 2025 20:33
@phpstan-bot

Copy link
Copy Markdown
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes
ondrejmirtes merged commit 4972fd9 into phpstan:2.1.x Oct 2, 2025
@ondrejmirtes

Copy link
Copy Markdown
Member

Thank you!

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