theseer / phpdox

Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT)
http://phpdox.de
Other
600 stars 121 forks source link

Can't install phpdox due nikic/php-parser #353

Closed tina-junold closed 5 years ago

tina-junold commented 5 years ago

Hi, Currently it is not possible to install phpstan and phpdox in parallel since phpstan requires nikic/php-parser in 4.0

# composer require --dev theseer/phpdox

Using version ^0.11.2 for theseer/phpdox
./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 theseer/phpdox ^0.11.2 -> satisfiable by theseer/phpdox[0.11.2].
    - Conclusion: remove nikic/php-parser v4.2.1
    - Conclusion: don't install nikic/php-parser v4.2.1
    - theseer/phpdox 0.11.2 requires nikic/php-parser ^3.1 -> satisfiable by nikic/php-parser[v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5].
    - Can only install one of: nikic/php-parser[v3.1.0, v4.2.1].
    - Can only install one of: nikic/php-parser[v3.1.1, v4.2.1].
    - Can only install one of: nikic/php-parser[v3.1.2, v4.2.1].
    - Can only install one of: nikic/php-parser[v3.1.3, v4.2.1].
    - Can only install one of: nikic/php-parser[v3.1.4, v4.2.1].
    - Can only install one of: nikic/php-parser[v3.1.5, v4.2.1].
    - Installation request for nikic/php-parser (locked at v4.2.1) -> satisfiable by nikic/php-parser[v4.2.1].

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

# composer why nikic/php-parser

phpstan/phpstan          0.11.2  requires  nikic/php-parser (^4.0.2)  
phpstan/phpstan-phpunit  0.11    requires  nikic/php-parser (^4.0)    
theseer commented 5 years ago

Tools should not be installed via composer. Use their phar version and use phive to manage these.

That being said, release 0.12.0 should fix this.