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

Update FilterValidator.php #19945

Closed
wants to merge 1 commit into from
Closed

Update FilterValidator.php #19945

wants to merge 1 commit into from

Conversation

aldok10
Copy link
Contributor

@aldok10 aldok10 commented Aug 31, 2023

fixing: trim(): Passing null to parameter 1 ($string) of type string is deprecated on PHP 8.2

Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Fixed issues

fixing: trim(): Passing null to parameter yiisoft#1 ($string) of type string is deprecated on PHP 8.2
@what-the-diff
Copy link

what-the-diff bot commented Aug 31, 2023

PR Summary

  • Implementation of New Filter Condition
    The update includes an added condition to verify if a filter is set as 'trim'. This feature will ensure that the attribute value is first turned into text format before the filter is applied. This adjustment enhances the flexibility of the filtering function, and ensures the 'trim' filter handles data correctly even when it is not in string format.

@bizley
Copy link
Member

bizley commented Sep 1, 2023

There is a TrimValidator for that case now, please use it.

@bizley bizley closed this Sep 1, 2023
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.

None yet

2 participants