Your server seems to meet Flarum's requirements just fine already https://docs.flarum.org/install#server-requirements
PHP 7.3+ with the following extensions: curl, dom, fileinfo, gd, json, mbstring, openssl, pdo_mysql, tokenizer, zip
MySQL 5.6+/8.0.23+ or MariaDB 10.0.5+
If you just updated your MariaDB or PHP version, you generally don't need to do anything in Flarum. All the PHP code already downloaded for PHP 7.3 will work fine on any future version of PHP.
The next time you update Flarum with the official guide, Composer will automatically download PHP code optimized for your new PHP version.
Only downgrading the PHP version makes things complicated with Flarum/Composer.
If you can upgrade to PHP 8.0 or 8.1, it's definitely recommended. Performance will be improved.