Inspired by Mago/PHPStan and Rust/Go speed results, poking agents to find slow spots in @rectorphp
It's amazing how obvious improvements some checks are, once you see them, like this one:
PHPStan: 60 seconds
Mago (Rust): 3 seconds
I thought it was AI slop. Then I went down the rabbit hole... and ended up learning Go ๐
Is PHP becoming a "Rusty" language? ๐
https://t.co/H0rk53HtNp
If you think your PHP codebase is in a great shape,
I got another challenge (and truth) for you ๐
PHPStan level 8, Rector and ECS running at top levels... still found 900 mixed types...
Very dangerous to have these in codebaseโข๏ธ
We've launched a brand new website design couple weeks ago,
with focus on clear docs,
advanced rule filters
and beautiful code snippets ๐คฉ
How do you like it?
(Press "F" or "D" for easter ๐ฅ)
Next Rector release will not blindly run all the Symfony rules, that were useful historically.
Instead, most of rule will be capped by composer version they run on, making Rector run faster and more focused on your current version ๐
Discover more about composer-based sets ๐
https://t.co/Tjr4q38UM5
pekral/rector-rules 0.6 is out ๐
- 4 new rules from Rector 2.7.0
- requires rector/rector ^2.7.0
- 2 rules dropped after Rector removed or deprecated them
- 230 curated rules, one import
https://t.co/Id0Mq4UuxC
@rectorphp@laravel
Now this is cool and generic PHPStan rule...
...whenever you pass union of object types, and return the same union (-/+ null), the type is most likely generics.
Now spotted in CI ๐
This applies for any online/IT/keyboard-based profession.
5 years ago I started to learn skill of electrician, plumber, builder, excavator, gardener and house reconstruction planner/manager.
Many fails, much knowledge and skills obtained.
Most of those are now better paid than devs and and in-shortage in my country.
Handyman who can fix your issue the month you call are gold.
I'm freezing my book "Upgrade Every Day" at 90 %.
~280 pages hand-written in 2024-2026.
But since spring 2026 agents changed how we upgrade code, and reading a tech book is now the slowest way to learn
Chapters are there to read
https://t.co/wSNhihwQ6w
"Should we rewrite or upgrade?"
That question costs teams years when it's answered by guessing.
We've reviewed hundreds of PHP codebases. We'll tell you which one your app actually needs - and in what order - in 2 weeks.
https://t.co/OrTOVNEXzc