PHPStan 2.3 Released With Unused Variable Detection And Performance Gains
The latest version of the PHP static analysis tool introduces unused variable detection, improved generic type handling, and enhanced engine performance.
PHPStan 2.3 is out. You can now use the new detection feature for unused variables, which flags local variables declared but never utilized in their scope to cut down clutter during code reviews.
The analysis engine is faster. Version 2.3 also improves generic type handling, bringing more precise type checking and better type inference coverage for collections and nested structures in complex applications.
If you want to see the new logic in action, the project blog hosts interactive demonstrations detailing how the analysis works in practical coding scenarios and showing the performance gains achieved in this iteration.
