Library PHP Tek 2025 Advanced Rector Shenanigans
Advanced Rector Shenanigans

Advanced Rector Shenanigans

CA
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.