Skip to content

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

Merged
ondrejmirtes merged 2 commits intophpstan:masterfrom
devbanana:filter_var-should-return-non-empty-string
Aug 25, 2021
Merged

Make filter_var() return non-empty-string if input is non-empty#642
ondrejmirtes merged 2 commits intophpstan:masterfrom
devbanana:filter_var-should-return-non-empty-string

Conversation

@devbanana
Copy link
Copy Markdown
Contributor

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

@devbanana
Copy link
Copy Markdown
Contributor Author

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

@ondrejmirtes
Copy link
Copy Markdown
Member

This change needs a test in NodeScopeResolverTest.

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

Thank you!

@BackEndTea
Copy link
Copy Markdown
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
Copy Markdown
Member

@BackEndTea Please send a PR or open an issue.

@devbanana
Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

filter_var() should return non-empty-string if argument is non-empty-string

3 participants