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 Trim filter with null or other non-string value with strict_types=1 #51

Merged
merged 2 commits into from
Oct 11, 2021

Conversation

maxmilash
Copy link
Contributor

@maxmilash maxmilash commented Oct 5, 2021

When using strict_type=1, if the value of the Trim filter gets null, or another value other than the string, then we will get Fatal Error, because trim accepts only a string.
Let's correct it, because I think this is erroneous behavior

@maxmilash maxmilash changed the title fix Trim filter with null or other non-string value for PHP8 fix Trim filter with null or other non-string value with strict_types=1 Oct 5, 2021
@rdohms rdohms added this to the v4.0.1 milestone Oct 6, 2021
@rdohms rdohms added the Bug Something isn't working label Oct 6, 2021
Copy link
Owner

@rdohms rdohms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @maxmilash !
Can you address the comments and add the context about the scenario to the commit message itself? (basically the text you added to the PR)

@maxmilash
Copy link
Contributor Author

Ok @rdohms. I fixed it

@rdohms rdohms merged commit ef4c214 into rdohms:master Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants