$ composer require --dev phpdocumentor/phpdocumentor
Using version ^2.9 for phpdocumentor/phpdocumentor
./composer.json has been updated
Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phpdocumentor/phpdocumentor ^2.9 -> satisfiable by phpdocumentor/phpdocumentor[v2.9.0].
- Conclusion: remove nikic/php-parser v3.0.2
- Conclusion: don't install nikic/php-parser v3.0.2
- phpdocumentor/phpdocumentor v2.9.0 requires phpdocumentor/reflection ^3.0 -> satisfiable by phpdocumentor/reflecti on[3.0.0, 3.0.1].
- phpdocumentor/reflection 3.0.0 requires nikic/php-parser ^1.0 -> satisfiable by nikic/php-parser[v1.0.0, v1.0.1, v 1.0.2, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0, v1.4.0, v1.4.1].
- phpdocumentor/reflection 3.0.1 requires nikic/php-parser ^1.0 -> satisfiable by nikic/php-parser[v1.0.0, v1.0.1, v 1.0.2, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0, v1.4.0, v1.4.1].
- Can only install one of: nikic/php-parser[v1.3.0, v3.0.2].
- Can only install one of: nikic/php-parser[v1.4.0, v3.0.2].
- Can only install one of: nikic/php-parser[v1.4.1, v3.0.2].
- Can only install one of: nikic/php-parser[v1.0.0, v3.0.2].
- Can only install one of: nikic/php-parser[v1.0.1, v3.0.2].
- Can only install one of: nikic/php-parser[v1.0.2, v3.0.2].
- Can only install one of: nikic/php-parser[v1.1.0, v3.0.2].
- Can only install one of: nikic/php-parser[v1.2.0, v3.0.2].
- Can only install one of: nikic/php-parser[v1.2.1, v3.0.2].
- Can only install one of: nikic/php-parser[v1.2.2, v3.0.2].
- Installation request for nikic/php-parser (locked at v3.0.2) -> satisfiable by nikic/php-parser[v3.0.2].
Installation failed, reverting ./composer.json to its original content.
I did not install nikic/php-parser v3.0.2, I suspect it was installed with more than on other package. I have no clue how to solve this. I can't downgrade nikic/php-parser to a satisfiable version because I can not specify what version to use.
composer show -i -ttells me this:
laravel/framework v5.3.29 The Laravel Framework.
├──classpreloader/classpreloader ~3.0
│ ├──nikic/php-parser ^1.0|^2.0|^3.0
│ │ ├──ext-tokenizer *
│ │ └──php >=5.5
│ └──php >=5.5.9
├──jeremeamia/superclosure ~2.2
│ ├──nikic/php-parser ^1.2|^2.0|^3.0
│ │ ├──ext-tokenizer *
│ │ └──php >=5.5
│ ├──php >=5.4
│ └──symfony/polyfill-php56 ^1.0
├──psy/psysh 0.7.*|0.8.*
│ ├──dnoegel/php-xdg-base-dir 0.1
│ │ └──php >=5.3.2
│ ├──jakub-onderka/php-console-highlighter 0.3.*
│ │ ├──jakub-onderka/php-console-color ~0.1
│ │ │ └──php >=5.3.2
│ │ └──php >=5.3.0
│ ├──nikic/php-parser ~1.3|~2.0|~3.0
│ │ ├──ext-tokenizer *
Which does not solve anything for me, because my whole application is built on, in and under laravel.
Please read #1818 which covers the same issue.
Thanks :) .
Most helpful comment
Please read #1818 which covers the same issue.