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

RegexArrayShapeMatcher - more precise subject types #3897

Merged
merged 17 commits into from
Mar 24, 2025

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Mar 22, 2025

closes phpstan/phpstan#12749

I am aware that we are still not optimal and could be more precise in some cases, but I think its still a solid step forward

@staabm
Copy link
Contributor Author

staabm commented Mar 22, 2025

I am aware that we are still not optimal and could be more precise in some cases, but I think its still a solid step forward

@gharlan @mvorisek @Seldaek could you double check the test expectations?

I likely overlooked something while adjusting all these expectations

@staabm staabm force-pushed the preg-subj branch 2 times, most recently from 85e7b7c to d43ca1b Compare March 23, 2025 07:16
@staabm staabm marked this pull request as ready for review March 23, 2025 07:24
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@staabm
Copy link
Contributor Author

staabm commented Mar 23, 2025

(errors in nette are valid - expectations need updates)

Copy link
Contributor

@Seldaek Seldaek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from a quick look👍🏻

@staabm
Copy link
Contributor Author

staabm commented Mar 24, 2025

awesome, thank you all for reviewing.

@ondrejmirtes ondrejmirtes merged commit f2f2ddf into phpstan:2.1.x Mar 24, 2025
405 of 417 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.

preg_match: non-empty-string for $match[0]
6 participants