PHPStan 1.0 and phpstan-drupal 1.0!
Congratulations to Ondřej for releasing PHPStan 1.0 today! Years ago, folks weren’t thinking very much about static analysis in PHP. PHPStan’s first release was back in July 2016, with Vimeo’s Psalm released shortly later in November. Now static analysis of PHP code is a hot topic, and PHPStan has become a defacto tool in a developers toolset.
Thanks to sponsored live streaming sponsor Esteemed, I contributed two fixes to PHPStan that’ll help out folks as we prepare to move onto PHP 8.
- NativeFunctionReflection deprecated support: PHPStan will now detect usages of deprecated native PHP functions (like
create_function) when you use the phpstan-deprecation-rules package.
- define: case_insensitive is ignored, case-insensitive constants are no longer supported: report when using the ignored case insensitive parameter with PHP 8.