mcustiel / phiremock-common

Common classes for Phiremock
GNU General Public License v3.0
3 stars 4 forks source link

Compatibiliby issue with Laminas #15

Closed esteban-serfe closed 9 months ago

esteban-serfe commented 9 months ago

Hi @mcustiel

I'm trying to use the codeception module in my Laravel 10 project but I'm getting a dependency issue.

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

  Problem 1
    - mcustiel/phiremock-common[v1.0.3, ..., v1.0.6] require laminas/laminas-diactoros ^2.0 -> satisfiable by laminas/laminas-diactoros[2.0.0, ..., 2.26.0].
    - mcustiel/phiremock-codeception-module[v1.0.0, ..., v1.1.1] require php ^7.2 -> your php version (8.2.12) does not satisfy that requirement.
    - mcustiel/phiremock-common[v1.0.0, ..., v1.0.2] require php ^7.2 -> your php version (8.2.12) does not satisfy that requirement.
    - mcustiel/phiremock-client[v1.0.0, ..., v1.1.1] require php ^7.2 -> your php version (8.2.12) does not satisfy that requirement.
    - mcustiel/phiremock-codeception-module[v1.1.2, ..., v1.2.0] require codeception/codeception >=2.2 <5.0 -> found codeception/codeception[2.2.0, ..., 2.5.6, 3.0.0, ..., 3.1.3, 4.0.0, ..., 4.2.2] but it conflicts with your root composer.json require (^5.0).
    - laminas/laminas-diactoros[2.0.0, ..., 2.4.1] require php ^7.1 -> your php version (8.2.12) does not satisfy that requirement.
    - laminas/laminas-diactoros[2.5.0, ..., 2.6.0] require php ^7.3 || ~8.0.0 -> your php version (8.2.12) does not satisfy that requirement.
    - laminas/laminas-diactoros[2.7.0, ..., 2.14.0] require php ^7.3 || ~8.0.0 || ~8.1.0 -> your php version (8.2.12) does not satisfy that requirement.
    - laminas/laminas-diactoros[2.15.0, ..., 2.17.0] require php ^7.4 || ~8.0.0 || ~8.1.0 -> your php version (8.2.12) does not satisfy that requirement.
    - laminas/laminas-diactoros[2.18.0, ..., 2.24.2] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.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.
    - laminas/laminas-diactoros[2.25.0, ..., 2.26.0] require psr/http-message ^1.1 -> found psr/http-message[1.1] but the package is fixed to 2.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.
    - mcustiel/phiremock-codeception-module v2.0.0 requires mcustiel/phiremock-client ^1.0 -> satisfiable by mcustiel/phiremock-client[v1.0.0, ..., v1.2.1].
    - mcustiel/phiremock-client[v1.1.2, ..., v1.2.1] require mcustiel/phiremock-common ^1.0 -> satisfiable by mcustiel/phiremock-common[v1.0.0, ..., v1.0.6].
    - Root composer.json requires mcustiel/phiremock-codeception-module * -> satisfiable by mcustiel/phiremock-codeception-module[v1.0.0, ..., v1.2.0, v2.0.0].

Basically the issue comes from the Laminas -diactoros version used on the latest release. I saw https://github.com/mcustiel/phiremock-common/issues/4 but assume you haven't had time to update this.

Is there any roadmap to update the dependencies to resolve this?

mcustiel commented 9 months ago

Hello @esteban-serfe Is it possible that you are trying to install the v1 of the phiremock-codeception-module? There's a v2 with updated dependencies, supporting PHP8, maybe that should solve your issue. Also this one: https://github.com/mcustiel/phiremock-codeception-module/issues/14, because v2 uses codeception v5. Let me know if that could be the issue.

esteban-serfe commented 9 months ago

Strange as composer should detect this and select the latest version by default as I'm not specifying any specific version on require. Will try with ^2.0 to see what happens.