Safely upgrade from PHP 7.4 to 8.1 using Rector

I have to say it from the start, the only thing that comes close to safely upgrading a codebase is having a solid set of automated tests…