spiral-modules / jobs

RoadRunner: Background PHP workers, Queue brokers
MIT License
60 stars 11 forks source link

PHP 8 / RoadRunner 2 Compatibility #66

Open elazar opened 2 years ago

elazar commented 2 years ago

I received the conflict below when attempting to add spiral/jobs to a project using PHP 8.

$ composer require -W spiral/jobs
Using version ^2.2 for spiral/jobs
./composer.json has been updated
Running composer update spiral/jobs --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - spiral/jobs v2.2.0 requires php ^7.2 -> your php version (8.0.12) does not satisfy that requirement.
    - spiral/jobs[v2.2.1, ..., v2.2.2] require spiral/roadrunner ^1.1 -> found spiral/roadrunner[v1.1.0, ..., v1.9.2] but it conflicts with your root composer.json require (^2.5).
    - Root composer.json requires spiral/jobs ^2.2 -> satisfiable by spiral/jobs[v2.2.0, v2.2.1, v2.2.2].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require spiral/jobs:*" to figure out if any version is installable, or "composer require spiral/jobs:^2.1" if you know which you need.

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