xxxxxxxxxx
Project or global composer.json file
{
"config": {
"platform-check": false
}
}
xxxxxxxxxx
Add this lines in composer.json file:
{
"config": {
"platform-check": false
}
}
Or set the version:
{
"config": {
"platform": {
"php": "7.1.0"
}
}
}
And run composer dump-autoload
xxxxxxxxxx
sudo a2dismod php8.0
sudo a2enmod php8.1
sudo systemctl restart apache2