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 #20127

Closed
wants to merge 1 commit into from
Closed

Update FilterValidator.php #20127

wants to merge 1 commit into from

Conversation

asminog
Copy link

@asminog asminog commented Mar 7, 2024

PHP Deprecated Warning 'yii\base\ErrorException' with message 'trim(): Passing null to parameter #1 ($string) of type string is deprecated'

in /app/shop.box/vendor/yiisoft/yii2/validators/FilterValidator.php:81

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

PHP Deprecated Warning 'yii\base\ErrorException' with message 'trim(): Passing null to parameter yiisoft#1 ($string) of type string is deprecated'

in /app/shop.box/vendor/yiisoft/yii2/validators/FilterValidator.php:81
Copy link

what-the-diff bot commented Mar 7, 2024

PR Summary

  • Enhanced Validation on Filter Function
    A change has been introduced in the attribute validation process. Now, it not only verifies the attribute but also checks if its value is not empty before applying any changes to it. This enhancement brings more robustness, ensuring only meaningful data is allowed.

@bizley
Copy link
Member

bizley commented Mar 7, 2024

Please use trim dedicated filter for that.

@bizley bizley closed this Mar 7, 2024
@asminog asminog deleted the patch-1 branch March 7, 2024 08:33
@bizley
Copy link
Member

bizley commented Mar 7, 2024

I think you are using old version of Gii...

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.

2 participants