Skip to content

RegexArrayShapeMatcher: Don't narrow 'J' modifier #3723

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 1 commit into from
Dec 11, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Dec 11, 2024

I think the 'J' modifier - which I have never seen in code until today - is something we don't need to support.
adding support is not impossible, but I don't want to overcomplicate the regex analysis for such an edge case.

this PR just makes sure we don't narrow it in a wrong way.

closes phpstan/phpstan#12126

@ondrejmirtes ondrejmirtes merged commit ecdd6c6 into phpstan:1.12.x Dec 11, 2024
284 checks passed
@ondrejmirtes
Copy link
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.

None yet

2 participants