Dry-run Rector
Now that you have your Rector properly configured with your MLP data.
Dry-run gives you the opportunity to see what Rector has found and will execute/change before it actually does it on your behalf.
it's time to dry-run rector by executing the following command.
Dry run produces a very detailed output file (if you spooled it off to a file) containing the diff and the list of rector rules that were applied to make your code compatible with PHP 8.2 (which we configured it to)
Execute Rector
If your dry-run is clear or you are ready to let Rector auto-update your code, now it's time to get a second git commit to "clear" the system so we know exactly what rector has done to our system.
Prepare Git
Commit
Execute
Run the rector process once again, but without --dry-run
and --clear-cache
options as the cache is up to date (the process should look like this):