Tomas Votruba — Let Rector do the Boring Work
summary
A CLI tool called Rector actually rewrites code to upgrade PHP and frameworks it runs on PHP 7.2 without conflicts inspects composer to pick the right PHP sets and shows changes with dry run and diff it converts single‑statement functions to arrow functions promotes properties to constructor promotion and extracts readonly properties it offers a type coverage level with about 27 rules for tightening types and a that code level for dead‑code removal and a custom rule generator that scaffolds a rule plus test so the upgrade work is automated and CI friendly
AI-written summary · about
chapters (9)
- 0:00Welcome to Laravel
- 5:24Pain of manual upgrades
- 8:45Introducing Rector
- 10:17Live demo of Rector
- 19:14Writing custom Rector rules
- 23:08Community Rector sets
- 25:18Live Rector package release
- 26:44Community contributions
- 27:51Q&A
related talks
22mInstant Upgrades with Rector
14mInstant Upgrades with Rector
28mReformat, Refactor, Replace: A practical guide for dealing with legacy software
50mPHP 8.2 - Just upgrade and go?
40mBullet-proof projects
40mRefactoring Huge Legacy PHP Applications - From 100 hours to minutes
50mTools of the Trade
52mAutomate Drupal 9 upgrades: Addressing deprecated code as a community
