PHPStan 2.0 has arrived!
Marcos Marcolin β’ November 11, 2024 β’ 2 min read
php
After more than three years, PHPStan 2.0 has arrived! And with this version, a new ElePHPant joins the PHP herd! ππ
During that time, the author shipped more than 170 patches, bringing bug fixes and improvements.
The new version brings several new features: Level 10, which flags the use of mixed in code; a new List type for PHPStan's PHPDocs; plus a big reduction in memory usage, delivering much better performance.
In analysis tests on large projects, PHPStan 2.0 showed a 50 to 70% savings in memory usage, resulting in much faster analyses.
For those who don't know it, PHPStan is a static analyzer that scans your entire codebase looking for bugs, whether simple or hard to spot.
It even catches errors in rarely executed if blocks, which usually fall outside test coverage.
You can use it locally or in CI to make sure these bugs never reach production.
π And about the ElePHPant: by getting one, you support the continuity of the PHPStan project and also grow your ElePHPant collection! ππ
π Check out all the release details on the official site: PHPStan 2.0 Released With Level 10 and Elephpants!

I already placed my order to grow my herd :)