参见Github问题,这个问题起源于何处。
我的包是phpdocumentor/reflection-docblock**,,它不是依赖项。**
我正在尝试将phpdocumentor/reflection-docblock更新为更新的phpunit/phpunit依赖项,即更新开始使用包。
有新的循环依赖关系:
phpdocumentor/reflection-docblock包需要phpunit/phpunitphpunit/phpunit需要phpspec/prophecy (因为phpunit/phpunit 4.5)phpspec/prophecy需要此phpdocumentor/reflection-docblock ( this )包抽象的:
工作前
{
"require-dev": {
"phpunit/phpunit": "4.4"
}
}断后
{
"require-dev": {
"phpunit/phpunit": "4.5"
}
}当我跑步时:
composer update编写器冲突输出
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phpdocumentor/reflection-docblock dev-phpunit -> satisfiable by phpdocumentor/reflection-docblock[dev-phpunit].
- phpspec/prophecy v1.3.1 requires phpdocumentor/reflection-docblock ~2.0 -> satisfiable by phpdocumentor/reflection-docblock[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5].
- phpunit/phpunit 4.5.0 requires phpspec/prophecy ~1.3.1 -> satisfiable by phpspec/prophecy[v1.3.1].
- Can only install one of: phpdocumentor/reflection-docblock[2.0.0, dev-phpunit].
- Can only install one of: phpdocumentor/reflection-docblock[2.0.1, dev-phpunit].
- Can only install one of: phpdocumentor/reflection-docblock[2.0.2, dev-phpunit].
- Can only install one of: phpdocumentor/reflection-docblock[2.0.3, dev-phpunit].
- Can only install one of: phpdocumentor/reflection-docblock[2.0.4, dev-phpunit].
- Can only install one of: phpdocumentor/reflection-docblock[2.0.5, dev-phpunit].
- Installation request for phpunit/phpunit 4.5 -> satisfiable by phpunit/phpunit[4.5.0].我试过:
minimum-stability: dev"phpunit/phpunit": "4.5 as 4.4"有什么办法吗?
发布于 2017-11-13 18:35:39
添加
"extra": {
"branch-alias": {
"dev-master": "4.x-dev"
}
}到composer.json of phpdocumentor/reflection-docblock。
这将允许您将当前的主版用作满足需求的4.x版本。
缺点是。在继续使用版本时,您必须更新本节。
https://stackoverflow.com/questions/47236948
复制相似问题