Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Php version overridden by "config.platform.php"

I'm trying to upgrade an application (magento) but I can't proceed as per the following error

your PHP version (7.0.22) overriden by "config.platform.php" version (7.0.2) doesnt satisfy requirements.

However there is not a config->platform setting in my composer.json. Viceversa, if I specify it or I add ignore-platform-reqs,s it works.

Tried to search also for the 7.0.2 or platform string over all the project but I can't see any can affect composer.

Any idea where the setting can be found?

like image 569
apedic Avatar asked Oct 27 '25 18:10

apedic


1 Answers

You have to update your php version on the composer.json

 "config": {
    "platform": {
      "php": "7.2"
    }
  },
like image 160
Mostafa Soufi Avatar answered Oct 29 '25 17:10

Mostafa Soufi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!