Creating @phpstan by day and night. 👨🏻‍💻👨‍👩‍👦‍👦🎮🚴‍♂️

Prague, Czech Republic
I've been promising full PHP 8.4 support in PHPStan "later this year". Well, this is as late as it gets 😅 PHPStan 2.1 🐘 is out with support for property hooks, asymmetric visibility, and the #[Deprecated] attribute 🎉 What about you? When do you plan to upgrade to PHP 8.4?
8
33
209
59,419
Had an idea today after lunch and basically one-shotted a solution for the currently most-upvoted PHPStan feature request:
1
2
23
2,798
After my summer break I am back at my primary job. Started updating #phpstan in our closed source projects CI. one example: PHPStan 2.2.5: 70s PHPStan 2.2.14: 37s nice to see our recent #performance focus pays off in real world projects 🚀
2
10
545
just supported #kimai with a drive-by #phpstan improvement for their GitHub Actions pipeline status quo was: 66s after disabling pcov: 53s after update to PHP8.3 - which enables PHPStan turbo: 34s with persistent and warm result-cache: 4s github.com/kimai/kimai/pull/…
2
14
675
Ondřej Mirtes retweeted
PHPStan level 8 on Laravel is brutal but worth it. Went from 0 to 8, then applied the pattern to 4 projects for now. Caught real bugs, not style nits.
1
3
15
622
Ondřej Mirtes retweeted
Larastan 3.12.0 is out! 🚀 #phpstan #laravel And it's packed with new features and fixes! Relationship query callback inference, builder-of<Model> PHPDoc type, new opt-in rules for queued jobs and explicit queries and more. Thanks to everyone who contributed! Read more below:
1
2
5
393
PoV: Your PHPStan pull request is about to be merged 🚀
3
2
26
2,294
The PHPStan's playground just gained a superpower: an X-ray for your code! Flip the switch in the top right corner and you'll get info about AST node types and inferred PHPStan types on hover.
3
11
71
3,078
updated @phpstan to the latest release on the @wordpress codebase. thanks to the latest performance improvements on a cold result-cache it now takes 11 seconds instead of 33 seconds before. pro tip: make regularly sure you are on the latest version!
1
5
16
1,763
Just updated @phpstan to the latest release on the @shopware codebase. on my local machine I can reproduce a speedup of ~47% (when result-cache is cold). As soon as the result-cache is warm, its a matter of a few seconds.
5
12
619
Ondřej Mirtes retweeted
I was told that the recent PHPStan version (2.2.13) got a significant performance boost. I have to say: I'm not disappointed! ±4s to run PHPStan compared to ±17s on the whole Tempest codebase 💯
5
8
72
4,005
PHPStan 2.2.13 is a big one. Not as big as 2.3.0 will be but a big one nevertheless 😉 • Result cache finally becomes usable for monorepo setups • PHPStan always runs with OPCache enabled • PHPStan Turbo strips runtime checks from PHPStan's own code (!!!)
1
9
69
3,751
Ondřej Mirtes retweeted
Replying to @taylorotwell
I’d do the opposite. Only allow issues, not PRs. Let the user describe the problem and brainstorm together on the solution and its shape. Once the spec is done, I’d hand it to an agent running on the best possible model I pay for. I don’t want to see the code first, I want to see the prompt.
4
3
91
4,333
Ondřej Mirtes retweeted
Larastan 3.11.0 is out! 🚀 This release includes a bunch of bug fixes and performance improvements. #php #phpstan #laravel Read the full changelog:
1
2
3
450
Is it just me, or have todo apps become completely obsolete? When I get a new idea, I just open a new terminal window and prompt it immediately.
15
20
2,577
If you are using #phpstan you should make sure to update regularly. Latest versions did make big steps in efficiency, analysis time and precision. If you think you are stuck on 1.x versions, tell me why!
1
6
15
805
Starting with todays @phpstan release we improved result cache so we can utilize it more often out of the box. Should be especially useful on gitlab so you can easily persist the result cache file between runs without the need for a custom path in NEON config
5
18
895
Some random guy wanted to take a picture with the creator of PHPStan at @laravellivedk.
6
2
279
10,435
Ondřej Mirtes retweeted
Back from the break! Ondřej Mirtes 🇨🇿 (@OndrejMirtes) is presenting “Rules, Not Prompts: PHPStan and Coding Agents.” Static analysis meets AI-assisted development.
1
10
524
Ondřej Mirtes retweeted
Ondrej Mirtes (@OndrejMirtes) presents 'Use Generics in PHP. Today.' at Webdevcon. Watch the recording and pick up practical developer insights. 🎥 webdevcon.nl/session/use-gen… #developers #programming
1
3
306