Skip to content

Use TypeUtils::getOldConstantArrays in RegularExpressionPatternRule #1679

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

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Sep 1, 2022

This is only getting all patterns here from the array and it should not matter if a key is optional or not, the pattern needs to be checked anyways

@herndlm herndlm marked this pull request as ready for review September 1, 2022 10:00
@ondrejmirtes ondrejmirtes merged commit 7cb0d37 into phpstan:1.8.x Sep 1, 2022
@ondrejmirtes
Copy link
Member

Thank you!

@herndlm herndlm deleted the regular-expression-pattern-rule-get-old-constant-arrays branch September 1, 2022 11:22
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.

2 participants