我在一个项目上,这是依赖关系列表
{
"name": "my/package",
"description": "My new project",
"require": [
"another/package": "1.0.0",
//...
],
"require-dev" => [
"phpunit/phpunit": "~6.0",
//....
]
}
在another/package
上,这是composer.json
文件
{
"name": "another/package",
"description": "My new other project",
"require-dev" => [
"phpunit/phpunit": "~5.0",
//....
]
}
another/package
在版本<中也使用phpunit/phpunit
,而不使用my/project
中使用的版本。有可能会忽略在another/package
中安装phpunit / phpunit吗?
答案 0 :(得分:0)
你做不到。
Dependency Hell in Composer #2609
但是您可以try this technique。
其他选项: