更新编写器而不更改PHP版本

时间:2018-03-26 15:18:22

标签: php laravel composer-php

我尝试更新我的作曲家,但是我收到了这个错误。

 Problem 1
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.10) does not satisfy that requirement.
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.10) does not satisfy that requirement.
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.10) does not satisfy that requirement.
- Installation request for doctrine/instantiator (locked at 1.1.0) -> satisfiable by doctrine/instantiator[1.1.0].

enter image description here

如果不升级我的PHP版本,我怎么能解决这个问题?

1 个答案:

答案 0 :(得分:1)

如果您不想更新您的php版本,请使用此..

composer update --ignore-platform-reqs

composer install --ignore-platform-reqs

备注 建议升级您的版本