@rectorphp

Instant Upgrades and Instant Refactorings for PHP Applications. Why do it manually? #rectorphp Created by @votrubaT

PHP Community
Joined December 2018
Simpler, clearer, focused on upgrades and delivery. New getrector.com/ website is here 🥳🥳🥳
1
3
30
1,060
Just preparing notes for next release... ...Rector got 25-30 % faster since the last one 🚀🚀🚀 (one more performance feature left to go...) Stay tuned
1
2
270
The upgrades we've done had a rule: the fewer dependencies = the lower costs to maintain/upgrade in long term. Trimming composer "require" section to 50 % Now we're also adding: the fewer dependendies = the fewer security holes to steal your database🔒
3
303
Welcome to patient zero Covid-moment of PHP Hope everyone will be safe by the end of this week 🙏
Couldn't say better than this. The number of wrong info posted all over socials about this topic is pretty unbelievable.
1
1
21
2,042
Not bad improvement for the most used rule in @rectorphp 😍
2
15
984
Stuck on legacy in a minefield? We’ll upgrade it for you: getrector.com/hire-team/
35 of 57 PHP & framework versions are end-of-life today. Zero security patches, ever. PHP 8.2 has ~72 days left. 8.1 is already dead. I made interactive page, so you can check where your stack stands 👇 tomasvotruba.com/patch-or-pe…
2
5
891
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:
2
23
1,641
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? 👇 tomasvotruba.com/blog/is-php…
6
7
1
99
8,213
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☢️
I got another code-quality challange for you! Did you known PHPStan skips analysis on mixed types? Level 8. And so do IDEs. The "getId()" might be missing or private, but nobody cares
2
18
1,182
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 🥚)
2
4
447
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 👇 getrector.com/documentation/…
1
2
518
3 books sold just over weekend 😍 And they say technical books are dead! (btw, this book it not about code) leanpub.com/upgrade-every-da…
1
2
835
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 😋
1
2
2
12
4,040
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.
As a software engineer of 18 years, I'm telling you now. Diversify your income.
8
3
1
22
5,679
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 leanpub.com/upgrade-every-da…
2
3
15
1,492
It seems Rust is handling big projects really really well, mid-size even better ECS in PHP: 50 s ECS in Go: 4 s ECS in Rust: 0.8 s 😱
9
5
155
25,077