Library PHP Tek 2025 Advanced Rector Shenanigans
Advanced Rector Shenanigans

Log in to watch this talk

You need to be logged in to access this video. If you don't have an account, purchase a virtual pass for the latest php[tek] conference to get access to the full video library.

Advanced Rector Shenanigans

Chris Abbey Chris Abbey PHP Tek 2025 Advanced Standard (50 minutes)

In this session we will explore the development of a custom Rector rule for migrating hundreds of classes off of a legacy framework and onto a set of more modern compositional traits. Using traits we will upend the class inheritance tree, and put guardrails in to contain the chaos. A basic understanding of Rector would help you get the most out of this, but is probably not required, @see Intro to Automated Refactoring with RectorPHP for that.