我需要在php版本5.6.30上部署Doctrine。有可能的?如果是这样,我应该如何在composer.json中设置依赖项?
Problem 1
- Installation request for doctrine/annotations v1.5.0 -> satisfiable by doctrine/annotations[v1.5.0].
- doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
Problem 2
- Installation request for doctrine/cache v1.7.1 -> satisfiable by doctrine/cache[v1.7.1].
- doctrine/cache v1.7.1 requires php ~7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
Problem 3
- Installation request for doctrine/collections v1.5.0 -> satisfiable by doctrine/collections[v1.5.0].
- doctrine/collections v1.5.0 requires php ^7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
Problem 4
- Installation request for doctrine/common v2.8.1 -> satisfiable by doctrine/common[v2.8.1].
- doctrine/common v2.8.1 requires php ~7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
Problem 5
- Installation request for doctrine/dbal v2.6.2 -> satisfiable by doctrine/dbal[v2.6.2].
- doctrine/dbal v2.6.2 requires php ^7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
Problem 6
- Installation request for doctrine/inflector v1.2.0 -> satisfiable by doctrine/inflector[v1.2.0].
- doctrine/inflector v1.2.0 requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement.
Problem 7
- Installation request for twig/twig v2.4.3 -> satisfiable by twig/twig[v2.4.3].
- twig/twig v2.4.3 requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement.
答案 0 :(得分:1)
尝试从composer.json
删除任何Doctrine依赖项,删除composer.lock
并通过CLI调用composer:
composer require doctrine/orm
作曲家本身将选择最佳的依赖项来匹配您的PHP版本。
答案 1 :(得分:1)
删除composer.lock并运行composer install help。