PHPStan 2.0 introduces dead code detection for PHP version checks by narrowing type information based on composer.json requirements or NEON config settings. The feature identifies always-true or always-false conditions in PHP_VERSION_ID, PHP_MAJOR_VERSION, and version_compare() calls, helping developers remove obsolete code for
Sort: