php - CakePHP 3.10 -> 4.x Upgrade - Rector won't start

one text

Solution:

I undertook an upgrade from 3.4 to 4.0 following the migration guide to a T, going through each minor upgrade and I still had the same issue with rector hanging.

Solution was, there is an Out of the Box PagesController that has been changed at some point between 3.4 and 3.10. I had to replace it with the version from the skeleton app (https://github.com/cakephp/app/blob/3.x/src/Controller/PagesController.php) in order for rector to pass.

If that's not your problem, try running rector one directory at a time to identify the problematic file. You can find the directory listing like: $ find /path/to/app/src/ -type d

Source