Keynote in English - UK at PHPSW: Playing Developer and Refactoring, October 2019
View Slides: https://slides.com/tomasvotruba/rector-talk-phpsw-2019-10
View Video: https://www.facebook.com/pehapkari/videos/762203974226992/
Checkout the code: https://github.com/rectorphp/demo
Short URL: https://joind.in/talk/b60cb (QR-Code (opens in new window))
Before the composer, we downloaded packages manually, one by one. Now you run "composer update symfony/symfony 4.2" and you can jump from 3.0 to 4.2 in seconds.
But how do you fix BC breaks in your code? Manually, one change after another, file by file? That's a daunting and dull work.
In PHP there are AST (abstract syntax tree) tools, that can automate this upgrade. Write the rule once, apply it in 1000 classes in seconds.
I'll show you how working with legacy code can be fun again.