The release of PHP’s latest version https://wiki.php.net/rfc#php_81 is around the corner and there’s never a better time to upgrade your codebase to PHP’s latest and greated version yet! So, you might be interested in converting your existing codebase (preferably based on PHP 8) to use PHP 8.1. Previosly, I https://www.amitmerchant.com/how-to-upgrade-application-codebase-to-use-PHP-8-features-rector how you can quickly convert your legacy codebase to use PHP 8 features using an open-source library called https://github.com/rectorphp/rector.
Next, as I mentioned in that article, Rector uses something called https://github.com/rectorphp/rector/blob/master/docs/rector_rules_overview.md to upgrade the PHP codebase.
And that’s how you can upgrade about any codebase to PHP 8.1 in a cinch!