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

Use of constant FILTER_SANITIZE_STRING is deprecated #10700

Closed
proton-ab opened this issue Mar 10, 2024 · 6 comments
Closed

Use of constant FILTER_SANITIZE_STRING is deprecated #10700

proton-ab opened this issue Mar 10, 2024 · 6 comments

Comments

@proton-ab
Copy link

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 in composer.json

"config": {
  "platform-check": true,
  "platform": {
    "php": "7.4.0"
  }
}

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

Copy link

mergeable bot commented Mar 10, 2024

This bug report is missing a link to reproduction at phpstan.org/try.

It will most likely be closed after manual review.

@ondrejmirtes
Copy link
Member

/cc @staabm

@staabm
Copy link
Contributor

staabm commented Mar 11, 2024

I think this is related to ondrejmirtes/BetterReflection#36 (or will be fixed by)

@ondrejmirtes
Copy link
Member

Done phpstan/phpstan-src#2966

@ondrejmirtes
Copy link
Member

Fixed

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants