pahanini / yii2-rest-doc

Yii2 REST doc generator
36 stars 19 forks source link

Composer conflicts with phpdocumentor -> phpspecs -> phpunit #26

Open sdlins opened 5 years ago

sdlins commented 5 years ago
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install pahanini/yii2-rest-doc dev-master
    - Conclusion: don't install pahanini/yii2-rest-doc 0.0.10
    - Conclusion: don't install pahanini/yii2-rest-doc 0.0.9
    - Conclusion: don't install pahanini/yii2-rest-doc 0.0.8
    - Conclusion: don't install pahanini/yii2-rest-doc 0.0.7
    - Conclusion: don't install pahanini/yii2-rest-doc 0.0.6
    - Conclusion: don't install pahanini/yii2-rest-doc 0.0.5
    - Conclusion: don't install pahanini/yii2-rest-doc 0.0.4
    - Conclusion: don't install pahanini/yii2-rest-doc 0.0.3
    - Conclusion: don't install pahanini/yii2-rest-doc 0.0.2
    - Conclusion: don't install pahanini/yii2-rest-doc 0.0.1
    - Conclusion: remove phpdocumentor/reflection-docblock 4.3.0
    - Installation request for pahanini/yii2-rest-doc * -> satisfiable by pahanini/yii2-rest-doc[0.0.1, 0.0.10, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, dev-analysis-zOPEwa, dev-master].
    - Conclusion: don't install phpdocumentor/reflection-docblock 4.3.0
    - pahanini/yii2-rest-doc dev-analysis-zOPEwa 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].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.0, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.0a1, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.0a2, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.0a3, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.1, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.2, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.3, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.4, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.5, 4.3.0].
    - Installation request for phpdocumentor/reflection-docblock (locked at 4.3.0) -> satisfiable by phpdocumentor/reflection-docblock[4.3.0].

Installation failed, reverting ./composer.json to its original content.

phpdocumentor is a phpspecs dependency that, in turn, is a phpunit dependency.

It seems to be a bug since we can't remove phpunit. Any workarounds?

Thank you.

pahanini commented 5 years ago

Could you provide your composer.json?

sdlins commented 5 years ago

@pahanini, sorry for my delay to answer. I had to change to other project and now I am back to API.

So, my composer.json:

{
    ...
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "~2.0.14",
        "yiisoft/yii2-bootstrap": "~2.0.0",
        "yiisoft/yii2-swiftmailer": "~2.1.0"
    },
    "require-dev": {
        "yiisoft/yii2-debug": "~2.1.0",
        "yiisoft/yii2-gii": "~2.1.0",
        "yiisoft/yii2-faker": "~2.0.0",

        "codeception/base": "~2.3.0",
        "codeception/verify": "~0.4.0",
        "codeception/specify": "~0.4.6",
        "symfony/browser-kit": ">=2.7 <=4.2.4"
    },
    ...
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
}

By the way, I tryed to install it again right now but the problem still persists, slightly different now:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for pahanini/yii2-rest-doc dev-master -> satisfiable by pahanini/yii2-rest-doc[dev-master].
    - Conclusion: remove phpdocumentor/reflection-docblock 4.3.0
    - Conclusion: don't install phpdocumentor/reflection-docblock 4.3.0
    - pahanini/yii2-rest-doc 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].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.0, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.0a1, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.0a2, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.0a3, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.1, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.2, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.3, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.4, 4.3.0].
    - Can only install one of: phpdocumentor/reflection-docblock[2.0.5, 4.3.0].
    - Installation request for phpdocumentor/reflection-docblock (locked at 4.3.0) -> satisfiable by phpdocumentor/reflection-docblock[4.3.0].
pahanini commented 4 years ago

try 0.0.12