Error when upgrading to V5.5

Yes the errors above.

i found a workaround here Invoice Ninja PHP 8.0 requires exec()? - #5 by LawOne

I changed from:
private static function checkPhpCli()
{
try {
exec(‘php -v’, $foo, $exitCode);

        if ($exitCode === 0) {
            return empty($foo[0]) ? 'Found php cli, but no version information' : $foo[0];
        }
    } catch (Exception $e) {
        return false;
    }
}

To
private static function checkPhpCli()
{
try {
if (function_exists(‘exec’)) {
exec(‘php -v’, $foo, $exitCode);
}

        if ($exitCode === 0) {
            return empty($foo[0]) ? 'Found php cli, but no version information' : $foo[0];
        }
    } catch (Exception $e) {
        return false;
    }
}

Should i keep these changes? App now is accessible