Error identifiers documentation is finally useful! Take a while and browse everything PHPStan can report: https://phpstan.org/error-identifiers
Ondřej Mirtes
Creating @phpstan@phpc.social by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Posts
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
For the longest time I was bothered that “Documentation” link on phpstan.org led directly to “Getting Started” page, and that some really useful docs pages weren’t discoverable at all.
That changes today. Documentation now has a dashboard with boxes describing what use-case/problem the linked page solves.
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Several times a week I tell people their problem can be solved by adding @phpstan-impure above their non-void function (or by setting rememberPossiblyImpureFunctionValues: false).
Finally, PHPStan will tell them by itself:
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Only 12 days after 2.1.39, PHPStan 2.1.40 is out now with 71 fixed issues! 🎉
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
PHPStan Pro just gained filtering errors by identifier! Huge thanks to @sebastian@phpc.social for the idea!
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
PHPStan fully supports PHP 8.5! https://phpstan.org/blog/phpstan-fully-supports-php-8-5
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Today is a big day and a big step for PHPStan: for the first time ever, I’m not the only person with merge rights on the repository. Two of the most active contributors, @markusstaab@phpc.social and @misterdeviling@bird.makeup can also merge PRs!
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
PHPStan 2.1.34 is out with two great advancements:
Optimized performance: between 25 % to 40 % faster times thanks to more caching and raw performance tweaks in code.
More precise analysis with Fibers (super-cool) on PHP 8.1+.
Upgrade today and let me know how it works for you!
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
Creating @ phpstan by day and night. 👨🏻💻👨👩👦👦🎮🚴♂️
I will be at PHP UK 2026 next month! Showing you how to write custom PHPStan rules, and also trying a new thing: I’ll be in the hallway ready to pair-program with you on your own codebase during PHPStan Office Hours!
Use code PHPUK26 for 10 % off the ticket if you plan to go.