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

Make filter_var() return non-empty-string if input is non-empty #642

Conversation

devbanana
Copy link
Contributor

Resolves phpstan/phpstan#5526. Let me know if there's anything else I'd need to add.

@devbanana
Copy link
Contributor Author

I see the test error but not sure what it's tripping on.

@ondrejmirtes
Copy link
Member

This change needs a test in NodeScopeResolverTest.

@ondrejmirtes ondrejmirtes merged commit 0364387 into phpstan:master Aug 25, 2021
@ondrejmirtes
Copy link
Member

Thank you!

@BackEndTea
Copy link
Contributor

Hey, this is probably incorrect for the SANITIZE versions, as they remove the 'wrong' parts, e.g. https://3v4l.org/PXaQ7

@ondrejmirtes
Copy link
Member

@BackEndTea Please send a PR or open an issue.

@devbanana
Copy link
Contributor Author

@BackEndTea Yeah I realized you are probably correct. I can try to handle the finer details in another PR if you haven't already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants