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

3m read timeFrom staabm.github.io
Post cover image
Table of contents
Lets get our hands dirtyFuture workSupport my open source work

Sort: