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
Use of constant FILTER_SANITIZE_STRING is deprecated #10700
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
/cc @staabm |
I think this is related to ondrejmirtes/BetterReflection#36 (or will be fixed by) |
Fixed |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
An error
Use of constant FILTER_SANITIZE_STRING is deprecated
is reported against code targeting PHP 7.4. The project properly defines which version it uses incomposer.json
Code snippet that reproduces the problem
No response
Expected output
I expect PHPStan to follow
composer.json
, infer PHP version (as described in https://phpstan.org/config-reference#phpversion) and not raise issue for deprecation that is applicable for PHP >= 8.1.Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: