We have just noticed after upgrading PHP that the flag FILTER_SANITIZE_STRING is deprecated in PHP 8.1.0.
I would like to submit a PR to replace the use of FILTER_SANITIZE_STRING with FILTER_SANITIZE_FULL_SPECIAL_CHARS. Based on the PHP docs for FILTER_SANITIZE_STRING it says:
Hi there,
We love Gitium, nice one!
We have just noticed after upgrading PHP that the flag
FILTER_SANITIZE_STRING
is deprecated in PHP 8.1.0.I would like to submit a PR to replace the use of
FILTER_SANITIZE_STRING
withFILTER_SANITIZE_FULL_SPECIAL_CHARS
. Based on the PHP docs forFILTER_SANITIZE_STRING
it says:and for
FILTER_SANITIZE_FULL_SPECIAL_CHARS
it also says:Therefore, it looks like
FILTER_SANITIZE_FULL_SPECIAL_CHARS
is a suitable replacement forFILTER_SANITIZE_STRING
.To note also, the constant
FILTER_SANITIZE_FULL_SPECIAL_CHARS
is available in PHP versions >= 5.3.3.Would you be happy to receive this PR?