module-yii2 icon indicating copy to clipboard operation
module-yii2 copied to clipboard

PHP version requirement contradiction.

Open neoacevedo opened this issue 6 months ago • 7 comments

There is a contradiction in the dependences:

codeception/module-yii2[1.1.0, ..., 1.1.1] require php >=5.6.0 <8.0 -> your php version (8.0.8) does not satisfy that requirement. codeception/lib-innerbrowser[4.0.0, ..., 4.0.3] require php ^8.1 -> your php version (8.0.8) does not satisfy that requirement.

The module itself requires a PHP < 8.0 but its dependence, lib-innerbrowser requires a version >= 8.1

I'm trying to install this module in the yii2 app basic template, but the PHP version requirement is weird. If I try with PHP >= 8.0 the results are the same.

Using version ^1.1 for codeception/module-yii2
./composer.json has been updated
Running composer update codeception/module-yii2
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - codeception/module-yii2[1.1.6, ..., 1.1.7] require codeception/lib-innerbrowser ^3.0 -> satisfiable by codeception/lib-innerbrowser[3.0.0, ..., 3.1.3].
    - codeception/module-yii2[1.1.8, ..., 1.1.10] require codeception/lib-innerbrowser ^3.0 | ^4.0 -> satisfiable by codeception/lib-innerbrowser[3.0.0, ..., 3.1.3, 4.0.0, 4.0.1, 4.0.2, 4.0.3].
    - codeception/module-yii2[1.1.0, ..., 1.1.1] require php >=5.6.0 <8.0 -> your php version (8.0.8) does not satisfy that requirement.
    - codeception/module-yii2[1.1.2, ..., 1.1.5] require codeception/codeception ^4.0 -> found codeception/codeception[4.0.0, ..., 4.2.2] but it conflicts with your root composer.json require (^5.1).
    - codeception/lib-innerbrowser 3.0.0 requires symfony/browser-kit ^4.4 || ^5.4 || ^6.0 -> found symfony/browser-kit[v4.4.0, ..., v4.4.44, v5.4.0, ..., v5.4.40, v6.0.0, ..., v6.4.8] but it conflicts with your root composer.json require (>=2.7 <=4.2.4).
    - codeception/lib-innerbrowser[3.0.1, ..., 3.1.3] require symfony/browser-kit ^4.4.24 || ^5.4 || ^6.0 -> found symfony/browser-kit[v4.4.24, ..., v4.4.44, v5.4.0, ..., v5.4.40, v6.0.0, ..., v6.4.8] but it conflicts with your root composer.json require (>=2.7 <=4.2.4).
    - codeception/lib-innerbrowser[4.0.0, ..., 4.0.3] require php ^8.1 -> your php version (8.0.8) does not satisfy that requirement.
    - Root composer.json requires codeception/module-yii2 ^1.1 -> satisfiable by codeception/module-yii2[1.1.0, ..., 1.1.10].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

neoacevedo avatar Aug 14 '24 16:08 neoacevedo