Repository navigation
fix(filter_var): bools, empty literals and FILTER_FLAG_EMPTY_STRING_NULL of FILTER_SANITIZE_STRING - #14329
Merged
Conversation
…ULL of FILTER_SANITIZE_STRING vimeo#14125 vimeo#14126 vimeo#14128 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 29f8677. Configure here.
Contributor
Author
|
Behaviour change
|
Contributor
✅ Performance: unchanged · Types: unchanged
How to read this table
head 7e31499 · base d180675 (merge-base) · workflow run |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
|
Thanks @jirkace! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

A bool filtered by
FILTER_VALIDATE_DOMAINorFILTER_VALIDATE_REGEXPPsalm infers
false, but PHP converts the bool to a string (trueto'1',falseto'') and filters that.Before
After
An empty literal sanitized
Before
After
FILTER_SANITIZE_STRINGwithFILTER_FLAG_EMPTY_STRING_NULLBefore
After
Fixes #14125
Fixes #14126
Fixes #14128