xxxxxxxxxx
// Go to your composer.json file in your project root
// Then search for the below configuration. And change
// it to whatever version you need
Like this :
"php": "7.0.7"
or something like this :
"php": "^7.3|^8.0",
//Then run composer install
composer install
xxxxxxxxxx
"config": {
"platform": {
"php": "7.0.7"
},
"preferred-install": "dist",
"optimize-autoloader": true
}
run composer install
xxxxxxxxxx
$>which composer
/usr/local/bin/composer
$>php -d memory_limit=512M /usr/local/bin/composer update
xxxxxxxxxx
"config": {
"platform": {
"php": "7.0.7"
},
"preferred-install": "dist",
"optimize-autoloader": true
}
Best way to do this is to delete your composer.lock file, changing the platform > php version in composer.json and then
run composer install