laminas-api-tools / api-tools-skeleton

Skeleton Application for Laminas API Tools
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
50 stars 64 forks source link

Error composer require laminas-api-tools/api-tools-doctrine #23

Closed sergiohermes closed 4 years ago

sergiohermes commented 4 years ago

Bug Report

Q A
Version(s) 1.5.2p1

Summary

composer create-project laminas-api-tools/api-tools-skeleton:1.5.2p1 composer require laminas-api-tools/api-tools-doctrine

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

  Problem 1
    - Installation request for laminas-api-tools/api-tools-doctrine ^2.3 -> satisfiable by laminas-api-tools/api-tools-doctrine[2.3.0].
    - Conclusion: remove laminas/laminas-hydrator 3.0.2
    - Conclusion: don't install laminas/laminas-hydrator 3.0.2
    - laminas-api-tools/api-tools-doctrine 2.3.0 requires phpro/zf-doctrine-hydration-module ^2.0.1 || ^3.0 || ^4.1 -> satisfiable by phpro/zf-doctrine-hydration-module[v2.0.1, v3.0.0, v4.1.0].
    - phpro/zf-doctrine-hydration-module v3.0.0 requires zendframework/zend-hydrator ^1.1 || ^2.2.1 -> satisfiable by laminas/laminas-hydrator[1.1.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.4.2], zendframework/zend-hydrator[1.1.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.4.2].
    - phpro/zf-doctrine-hydration-module v4.1.0 requires zendframework/zend-hydrator ^1.1 || ^2.2.1 -> satisfiable by laminas/laminas-hydrator[1.1.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.4.2], zendframework/zend-hydrator[1.1.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.4.2].
    - phpro/zf-doctrine-hydration-module v2.0.1 requires zendframework/zend-hydrator ~1.0 || ^2.0 -> satisfiable by laminas/laminas-hydrator[1.0.0, 1.1.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.4.2], zendframework/zend-hydrator[1.0.0, 1.1.0, 2.0.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.4.2].
    - Can only install one of: laminas/laminas-hydrator[1.1.0, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[2.2.1, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[2.2.2, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[2.2.3, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[2.3.0, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[2.3.1, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[2.4.0, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[2.4.1, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[2.4.2, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[1.0.0, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[2.1.0, 3.0.2].
    - Can only install one of: laminas/laminas-hydrator[2.2.0, 3.0.2].
    - don't install zendframework/zend-hydrator 1.0.0|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 1.1.0|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.0.0|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.1.0|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.2.0|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.2.1|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.2.2|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.2.3|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.3.0|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.3.1|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.4.0|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.4.1|don't install laminas/laminas-hydrator 3.0.2
    - don't install zendframework/zend-hydrator 2.4.2|don't install laminas/laminas-hydrator 3.0.2
    - Installation request for laminas/laminas-hydrator (locked at 3.0.2) -> satisfiable by laminas/laminas-hydrator[3.0.2].

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

Current behavior

How to reproduce

Expected behavior

michalbundyra commented 4 years ago

@sergiohermes All it is because laminas-api-tools/api-tools-doctrine does not support laminas-hydrator v3. If you go with version 2 all should be fine.

Try:

$ composer require laminas/laminas-hydrator:^2.0

and then:

$ composer require laminas-api-tools/api-tools-doctrine

It should solve the problem temporarily, until we provide support for laminas-hydrator v3 in api-tools-doctrine. We were waiting for support of it in Doctrine(ORM/ODM)Modules libraries, and I think we have got it already.

sergiohermes commented 4 years ago

Ty man, you are awesome!