You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPStan is a static analyzer that reports bugs in code. A deprecation can be considered a bug that will occur in the future. Could PHPStan report deprecated PHP code?
Example:
PHP 8.3 deprecated ${var} string interpolation. It could be reported when running PHPStan in PHP 8.3 environment or with phpVersion: 80300. This way we can prepare our code now for the change that will be required in one or more years.
The text was updated successfully, but these errors were encountered:
PHPStan core does this for selected errors. What matters is that the error can be detected from the AST. I'm not sure if this one can, feel free to test it.
You can open this with relevant information as a feature request in phpstan/phpstan (provided it's not a duplicate already).
PHPStan is a static analyzer that reports bugs in code. A deprecation can be considered a bug that will occur in the future. Could PHPStan report deprecated PHP code?
Example:
PHP 8.3 deprecated ${var} string interpolation. It could be reported when running PHPStan in PHP 8.3 environment or with
phpVersion: 80300
. This way we can prepare our code now for the change that will be required in one or more years.The text was updated successfully, but these errors were encountered: