r/PHP • • 2h ago

Article PHPStan 2.3: Leap in Performance, Generics Improvements, Detecting Unused Variables, and More!

https://phpstan.org/blog/phpstan-2-3-leap-in-performance

PHPStan 2.3: Leap in Performance, Generics Improvements, Detecting Unused Variables, and More!

I had so much fun with the interactive charts and widgets, check out the article. I promise it's worth checking it out yourself, and not just letting your agent summarize it for you 😉 It contains a lot of interactive widgets with practical examples of the new features in action.

32 Upvotes

5 comments sorted by

2

u/TheKingdutch 1h ago

Very excited about this release! The bi-directional type narrowing will be a game-changer.

The interactive widgets in the release notes are great educational material! 🙌

4

u/iruoy 36m ago

Thanks for all the work u/OndrejMirtes! This project increased the quality of php code for all of us.

The performance improvements are great. Especially in CI! And expanding what is checked is even better.

I've been subscribed to PHPStan Pro for 5 years without even using it, but I'm happy to sponsor the project.

2

u/lankybiker 27m ago

Awesome

2

u/thewallacio 17m ago

*SO* much faster!