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

Fix filter_var() narrowing with unknown options #2146

Merged
merged 6 commits into from Jan 19, 2023

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Dec 27, 2022

Closes phpstan/phpstan#8516

started the filter-var.php node scope resolver test file because I'd like to move some other filter-var tests over there

also: the fix is the first commit, the second one is still related, but the rest are unrelated fixes and improvements in additional commits.. thought I'll save you from 10 more PRs here :)

@herndlm herndlm force-pushed the fix-8516 branch 2 times, most recently from edf1929 to 86523f8 Compare December 27, 2022 13:59
@herndlm herndlm marked this pull request as draft December 27, 2022 14:17
@herndlm herndlm marked this pull request as ready for review December 27, 2022 14:20
@herndlm
Copy link
Contributor Author

herndlm commented Dec 27, 2022

ah ok, the failing GenericsIntegrationTest / LevelsTest case is unrelated, exists also in other PRs

@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@herndlm herndlm marked this pull request as draft December 28, 2022 08:06
@herndlm herndlm force-pushed the fix-8516 branch 4 times, most recently from 3bd6fa2 to a7ec9e0 Compare December 28, 2022 08:52
@herndlm herndlm marked this pull request as ready for review December 28, 2022 08:58
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@herndlm
Copy link
Contributor Author

herndlm commented Jan 19, 2023

sorry for the pressure, but what do you think about this one? it's big I know.. afterwards I should be finally able to re-use the logic and add support for filter_input() in the other PR. and I'm looking forward very much to that one, to help with many errors in some legacy code base.. 😊

@ondrejmirtes
Copy link
Member

This is so complicated 😂 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
4 participants