Legacy PHP upgrade: CakePHP 3.6 / PHP 7.4 to CakePHP 5.4 / PHP 8.5
Upgraded a Dutch e-commerce order management system (orders, stock, delivery routes, courier mobile use, webshop webhooks) in under two weeks.
More detail
I first wrote 353 automated tests capturing the old behaviour, upgraded in steps, and compared old vs new on real data: PDFs, Excel exports, stock of 1,535 products. Switched over outside office hours, with no user errors since. Along the way I fixed SQL injection in list filters, leaked password hashes, missing CSRF and page rights, and duplicate webhook orders.