繁体   English   中英

phpDocumentor使用版本极低的phpDocumentor反射Docblock依赖问题

[英]phpDocumentor using extremely low version of phpDocumentor Reflection Docblock dependency issue

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

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].

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM