0

但是,当我执行时,我正在尝试安装的dev-master版本:phpdocumentor/phpdocumentor

composer require --dev phpdocumentor/phpdocumentor dev-master

我收到以下问题:

Problem 1
- phpdocumentor/phpdocumentor dev-master requires phpdocumentor/reflection-docblock ~2.0 -> satisfiable by phpdocumentor/reflection-docblock[2.0.0, 2.0.0a1, 2.0.0a2, 2.0.0a3, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5] but these conflict with your requirements or minimum-stability.
- phpdocumentor/phpdocumentor dev-master requires phpdocumentor/reflection-docblock ~2.0 -> satisfiable by phpdocumentor/reflection-docblock[2.0.0, 2.0.0a1, 2.0.0a2, 2.0.0a3, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5] but these conflict with your requirements or minimum-stability.
- Installation request for phpdocumentor/phpdocumentor dev-master -> satisfiable by phpdocumentor/phpdocumentor[dev-master].

我的作曲家配置是:

"minimum-stability" : "dev",
"prefer-stable" : false,
"require":{
  "phpdocumentor/reflection-docblock" : "4.3.0",
}

我遇到的问题是我当前的phpdocumentor/reflection-docblock版本是4.3.0.

当我尝试执行此操作时:

php composer.phar require phpdocumentor/reflection-docblock:~2.0

然后我得到一个问题:

Problem 1
- felixfbecker/advanced-json-rpc v3.0.1 requires phpdocumentor/reflection-docblock ^4.0.0 -> satisfiable by phpdocumentor/reflection-docblock[4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.3.0] but these conflict with your requirements or minimum-stability.
- felixfbecker/advanced-json-rpc v3.0.1 requires phpdocumentor/reflection-docblock ^4.0.0 -> satisfiable by phpdocumentor/reflection-docblock[4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.3.0] but these conflict with your requirements or minimum-stability.
- felixfbecker/advanced-json-rpc v3.0.1 requires phpdocumentor/reflection-docblock ^4.0.0 -> satisfiable by phpdocumentor/reflection-docblock[4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.3.0] but these conflict with your requirements or minimum-stability.
- felixfbecker/advanced-json-rpc v3.0.1 requires phpdocumentor/reflection-docblock ^4.0.0 -> satisfiable by phpdocumentor/reflection-docblock[4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.3.0] but these conflict with your requirements or minimum-stability.
- Installation request for felixfbecker/advanced-json-rpc (locked at v3.0.1) -> satisfiable by felixfbecker/advanced-json-rpc[v3.0.1].

我不太确定如何解决这个依赖问题。我应该只下载源代码吗?

4

1 回答 1

0

如果felixfbecker/advanced-json-rpc需要高于 4.0 的版本,则无法安装 2.x 版。根据https://github.com/phpDocumentor/phpDocumentor2/issues/1834,您应该从提供的 phar 安装 phpDocumentor 以避免版本冲突。

毕竟,看起来这不是一个真正可靠的框架。他们在一年前承诺进行更新,但仍然依赖于两年前的版本......

于 2018-04-23T07:21:04.203 回答