#phpstan
26 posts · Last used 9d
Boosted by @welcome@friends.deko.cloud
Hi Fediverse 👋 I'm Kevin, a PHP/Symfony developer and team lead from Germany.
Lately one question keeps me busy: how do you let AI coding agents write PHP without lowering the bar? My answer so far: quality gates first. PHPStan at max, Rector, ECS, tests, architecture rules, Infection.
I write about it at https://blog.tony-stark.xyz and share my templates on GitHub. Happy to swap notes!
#introduction #PHP #Symfony #PHPStan
New release: PHPStan 2.2.15 https://github.com/phpstan/phpstan/releases/tag/2.2.15 #phpstan
fasten your seat belt - #phpstan 2.3.x will be a another massive step forward 🥳
we are not yet ready with it though 🤡
New release: PHPStan 2.2.9 https://github.com/phpstan/phpstan/releases/tag/2.2.9 #phpstan
Anyone out there with a open source codebase, running #phpstan in CI takes more than 5 minutes?
I would love looking into what makes it slow for you
Send me a link to your CI logs
RT
@OndrejMirtes@phpc.social handed me over a list of #php-src commits to verify and contribute to the php runtime.
So I started opening pull requests on the php project to improve performance of #phpstan.
Lets see how it goes - wish me luck :-)
I wrote a small blog post about the new release of patchlevel/event-sourcing-phpstan-extension, 1.3.0 adds three new rules.
They report aggregate properties that no event ever fills, state that nothing ever reads, and state that changes outside an apply method.
Also, every rule can be turned off individually.
Feel free to check it out!
https://patchlevel.dev/blog/what-is-new-in-the-event-sourcing-phpstan-extension-1-3-0
#TechBlog #PHP #DDD #EventSourcing #PHPStan #StaticAnalysis
New release: PHPStan 2.2.8 https://github.com/phpstan/phpstan/releases/tag/2.2.8 #phpstan
Last week I had an idea on how we can improve efficency when #phpstan needs to work with big unions of constant types (e.g. enum with lots of caes).
this had a nice impact on some example of our benchmark suite
New release: PHPStan 2.2.7 https://github.com/phpstan/phpstan/releases/tag/2.2.7 #phpstan
New release: PHPStan 2.2.6 https://github.com/phpstan/phpstan/releases/tag/2.2.6 #phpstan
Since April 2026 we fixed ~280 issues on #phpstan.
We implemented lots of new features and improvements along the way and made it even faster at the same time.
be prepared for the next release which will do another big leap in #performance 🚀
We released 1.3.0 of event-sourcing-phpstan-extension! See here for the changelog: https://github.com/patchlevel/event-sourcing-phpstan-extension/releases/tag/1.3.0
#PHP #DDD #EventSourcing #PHPStan #StaticAnalysis
In case you think #phpstan is running too slow, have a look at the result of running phpstan analyze command with -vv and check whether it utilizes the result cache
When the result cache is warm, it should be wicked fast
in CI you likely need to persist the cache manually
see
New release: phpstan-strict-rules 2.0.12 https://github.com/phpstan/phpstan-strict-rules/releases/tag/2.0.12 #phpstan
What is this?
– if key is string, then value must be int
– if key is int, then value must be bool
It should allow for ['foo' => 1, true]
#AskFedi #FollowerPower #amCoding #amProgramming #softwareDevelopment #softwareEngineering #PHP #PHPStan #computerScience #dataTypes #typeSystem #typeTheory #typeVariance #compositeDataTypes #dataTypeComposition
What is this? – if key is string, then value must be int – if key is int, then value must be bool It should allow for ['foo' => 1, true] #AskFedi #FollowerPower #amCoding #amProgramming #softwareDevelopment #softwareEngineering #PHP #PHPStan #computerScience #dataTypes #typeSystem #typeTheory #typ
union: array<string, int>|array<int, bool> 60%
something else (please comment) 0%
intersection: array<string, int>&array<int, bool> 40%
5 people · Closed
#phpstan 2.2.3+ is able to detect package updates based on composer.lock.
utilizing the pre-existing dependency graph, we need to re-analyze only affected files. Previously we had todo a full project analysis.
contributed by @sander_scode
New release: phpstan-doctrine 2.0.28 https://github.com/phpstan/phpstan-doctrine/releases/tag/2.0.28 #phpstan

