Symfony2,作曲家,您的PHP版本(5.6.18)覆盖“config.platform.php”版本(5.3.9)不符合要求

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了Symfony2,作曲家,您的PHP版本(5.6.18)覆盖“config.platform.php”版本(5.3.9)不符合要求脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在为我的项目安装原则.我收到关于错误PHP版本的错误.可以做什么来消除这个错误的真正原因?克服它的方法是使用选项“–ignore-platform-reqs”,如 https://getcomposer.org/doc/03-cli.md#require所述.

PHP版本:PHP 5.6.18

PHP 5.6.18  (cli) (built: Feb  3 2016 17:20:21)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0,Copyright (c) 1998-2016 Zend TechnoLOGies
    wITh Zend Opcache v7.0.6-dev,Copyright (c) 1999-2016,by Zend Technologies

错误:c ..> composer需要doctrine / data-fixtures

Using version ^1.1 for doctrine/data-fixtures
./composer.JSON has been updated
Loading composer repositories with package information
Updating dePEndencies (including require-dev)
Your requirements Could not be resolved to an installable set of packages.

  PRoblem 1
    - doctrine/migrations v1.3.0 requires PHP ^5.5|^7.0 -> your PHP version (5.6
.18) overriden by "config.platform.PHP" version (5.3.9) does not satisfy that re
quirement.
    - doctrine/migrations v1.2.2 requires PHP >=5.4.0 -> your PHP version (5.6.1
8) overriden by "config.platform.PHP" version (5.3.9) does not satisfy that requ
irement.
    - doctrine/migrations v1.2.1 requires PHP >=5.4.0 -> your PHP version (5.6.1
8) overriden by "config.platform.PHP" version (5.3.9) does not satisfy that requ
irement.
    - doctrine/migrations v1.2.0 requires PHP >=5.4.0 -> your PHP version (5.6.1
8) overriden by "config.platform.PHP" version (5.3.9) does not satisfy that requ
irement.
    - doctrine/migrations v1.1.0 requires PHP >=5.4.0 -> your PHP version (5.6.1
8) overriden by "config.platform.PHP" version (5.3.9) does not satisfy that requ
irement.
    - doctrine/migrations v1.0.0 requires PHP >=5.4.0 -> your PHP version (5.6.1
8) overriden by "config.platform.PHP" version (5.3.9) does not satisfy that requ
irement.
    - Installation request for doctrine/migrations ~1.0 -> satisfiable by doctri
ne/migrations[v1.0.0,v1.1.0,v1.2.0,v1.2.1,v1.2.2,v1.3.0].


Installation Failed,reverting ./composer.json to its original content.

composer.json的内容

"require": {
    "PHP": ">=5.3.9","symfony/symfony": "2.8.*","doctrine/orm": "^2.4.8","doctrine/doctrine-bundle": "~1.4","doctrine/data-fixtures" : "~1.1","doctrine/doctrine-fixtures-bundle": "dev-master",
你的composer.json的某个地方
"config": {
   "preferred-install": "dist","platform": {
       "PHP": "5.3.9"
   }
}

该块将覆盖您当前的PHP版本,如composer doc所述.

脚本宝典总结

以上是脚本宝典为你收集整理的Symfony2,作曲家,您的PHP版本(5.6.18)覆盖“config.platform.php”版本(5.3.9)不符合要求全部内容,希望文章能够帮你解决Symfony2,作曲家,您的PHP版本(5.6.18)覆盖“config.platform.php”版本(5.3.9)不符合要求所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。