Symfony2, composer, your PHP version (5.6.18) overriden by “config.platform.php” version (5.3.9) does not satisfy requirement

后端 未结 3 1824
悲&欢浪女
悲&欢浪女 2021-02-03 20:16

I am trying to install doctrine to my project. I am getting the error about the wrong PHP version. What can be done to remove the real reason for this error? The way to overcome

3条回答
  •  梦毁少年i
    2021-02-03 20:21

    Somewhere in your composer.json you have

    "config": {
       "preferred-install": "dist",
       "platform": {
           "php": "5.3.9"
       }
    }
    

    That block overrides your current PHP version as described in composer doc.

提交回复
热议问题