Skip to content

Comments

Replace deprecated FILTER_SANITIZE_STRING#150

Open
Theta-Dev wants to merge 1 commit intowheelybird:masterfrom
Theta-Dev:fix-deprecated-filter-var
Open

Replace deprecated FILTER_SANITIZE_STRING#150
Theta-Dev wants to merge 1 commit intowheelybird:masterfrom
Theta-Dev:fix-deprecated-filter-var

Conversation

@Theta-Dev
Copy link

I replaced all instances of filter_var(x, FILTER_SANITIZE_STRING) with an equivalent polyfill.

This fixes the Deprecated: Constant FILTER_SANITIZE_STRING is deprecated warning messages in PHP8

Source: https://stackoverflow.com/a/69207369

@wheelybird
Copy link
Owner

Cheers. The next release has replaced FILTER_SANITIZE_STRING with FILTER_SANITIZE_FULL_SPECIAL_CHARS, which hasn't (yet) been deprecated, so I think that probably solves the issue.

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