code-lts / doctum

A php API documentation generator, fork of Sami
https://doctum.long-term.support/
MIT License
300 stars 32 forks source link

Support nikic/php-parser v5 #72

Open AcriCAA opened 1 month ago

AcriCAA commented 1 month ago

Hi I am trying to install doctum via composer on a Laravel 11 project and composer version problems:


    - code-lts/doctum[v5.0.0, ..., v5.0.1] require nikic/php-parser ~4.5 -> found nikic/php-parser[v4.5.0, ..., v4.19.4] but the package is fixed to v5.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - code-lts/doctum[v5.0.2, ..., v5.3.1] require nikic/php-parser ~4.6 -> found nikic/php-parser[v4.6.0, ..., v4.19.4] but the package is fixed to v5.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - code-lts/doctum[v5.3.2, ..., v5.3.3] require php >=7.1.3 <7.2.0 -> your php version (8.3.12) does not satisfy that requirement.
    - code-lts/doctum[v5.4.0, ..., v5.5.4] require nikic/php-parser ^4.10 -> found nikic/php-parser[v4.10.0, ..., v4.19.4] but the package is fixed to v5.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires code-lts/doctum * -> satisfiable by code-lts/doctum[v5.0.0, ..., v5.5.4].```
williamdes commented 1 month ago

Hi, This is caused by nikic/php-parser v5 if you read the debug log I will see how this can be supported, thank you for reporting this

williamdes commented 1 month ago

Ref https://github.com/code-lts/doctum/pull/71