Skip to content
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

RegularExpressionPatternRule: validate preg_quote'd patterns #3270

Merged
merged 2 commits into from
Jul 27, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jul 26, 2024

similar to how we added support for preg_quote'd patterns in ArrayShapeMatcher, we now re-use the logic in RegularExpressionPatternRule

Review at best commit by commit
commit 1: refactoring of ArrayShapeMatcher for re-use
commit 2: adjust RegularExpressionPatternRule to make use of the refactoring

@staabm staabm changed the title RegularExpressionPatternRule: valide preg_quote'd patterns RegularExpressionPatternRule: validate preg_quote'd patterns Jul 26, 2024
@staabm staabm marked this pull request as ready for review July 26, 2024 13:33
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 465af9e into phpstan:1.11.x Jul 27, 2024
445 of 456 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the reg branch July 27, 2024 06:19
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