~/talk

Instant Upgrades with Rector

Talkat phpDay 2019 · 2019-05-10..05-11· [php, developer-experience]
slides:none on file

Codebase migration uses an AST with nikic/php-parser and a set of automated rules so refactors apply patternwise not filewise, cutting 44,000 lines (200,000 total) across 151 routes in about 80 hours of rule development. Rector claims it fixes roughly 80% of upgrade chores, provides rule sets for Symfony, Nette, Twig, Doctrine, PHPUnit, can add typehints to remove PHPStan errors, and runs in CI to apply and verify changes automatically.

AI-written summary · about

  1. 0:00Introduction
  2. 2:54Legacy code and frameworks
  3. 6:09Migrating frameworks with Rector
  4. 9:05Refactoring by pattern
  5. 10:53Rector's goals and benefits
  6. 12:04Daily code improvements
  7. 13:55Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.