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

[PHP] Replace default $flags variable with 0 #307

Merged
merged 1 commit into from
Jan 14, 2024
Merged

[PHP] Replace default $flags variable with 0 #307

merged 1 commit into from
Jan 14, 2024

Conversation

iricketson
Copy link
Contributor

@iricketson iricketson commented Jan 11, 2024

The sfValidatorIp class sets the $flags variable to null by default, which is passed into the $options parameter of the filter_var function and triggers a PHP deprecation error:

Deprecated: filter_var(): Passing null to parameter #3 ($options) of type array|int is deprecated in /path/to/friendsofsymfony1/symfony1/lib/validator/sfValidatorIp.class.php on line 104

This PR simply sets the default value of $flags to 0 (zero), which is the default filter_var $options value when not passed.

@connorhu connorhu merged commit d0f559c into FriendsOfSymfony1:master Jan 14, 2024
6 checks passed
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.

4 participants