We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Select filter doesn't work for falsey values (like string 0 or simply false), because:
0
false
if (empty($data)) { return; }
If you ask me, should be:
if (null === $data) { return; }
Or include some kind of allowed_falsy_values[] setting.
allowed_falsy_values[]
The text was updated successfully, but these errors were encountered:
I guess this is going partly to work in PHP8 since empty('0') is going to evaluate to false lol.
empty('0')
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The Select filter doesn't work for falsey values (like string
0
or simplyfalse
), because:If you ask me, should be:
Or include some kind of
allowed_falsy_values[]
setting.The text was updated successfully, but these errors were encountered: