Skip to content

Cannot use amqp with PHP8 #1144

@sandyandi

Description

@sandyandi

I get the following errors when using the bundle in a PHP8 container:

[LogicException]
To use given scheme "amqp" a package has to be installed. Run "composer req enqueue/amqp-bunny" to add it.

And I get the following errors when trying to install the enqueue/amqp-bunny package:

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

  Problem 1
    - bunny/bunny[v0.4.0, ..., v0.4.4] require php ~7.0 -> your php version (8.0.1) does not satisfy that requirement.
    - enqueue/amqp-bunny 0.10.8 requires bunny/bunny ^0.4 -> satisfiable by bunny/bunny[v0.4.0, ..., v0.4.4].
    - Root composer.json requires enqueue/amqp-bunny 0.10.8 -> satisfiable by enqueue/amqp-bunny[0.10.8].

bunny/bunny already released 0.5 that adds PHP8 support. Using that version could be an easy fix if it's compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions