PHPStan contributor Markus Staab announces a new focus on improving multi-PHP version support in static analysis. The goal is to help projects detect cross-version errors without requiring multiple CI jobs and baselines. Key improvements include making PHPStan aware of PHP version constraints within code scope, handling resource-to-object migrations, and detecting version-specific issues like deprecated ini options and type changes. The work aims to simplify PHP version upgrades for libraries and applications that need to support multiple PHP versions simultaneously.
Sort: