Skip to content

preg_match return value checking #46

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

Closed
shish opened this issue Feb 9, 2025 · 0 comments
Closed

preg_match return value checking #46

shish opened this issue Feb 9, 2025 · 0 comments

Comments

@shish
Copy link
Collaborator

shish commented Feb 9, 2025

#43 gave some magic to Safe\preg_match so that it returns a much more useful array - but phpstan now has even more magic so that if the return value of preg_match is checked, we can then be sure whether or not certain match groups are set - we should do that for Safe too

shish added a commit that referenced this issue Feb 9, 2025
@shish shish closed this as completed in a38d64f Feb 9, 2025
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

No branches or pull requests

1 participant