8000 [Messenger] AMQP v2.0.0: ack() must be of the type bool, null returned · Issue #51460 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Messenger] AMQP v2.0.0: ack() must be of the type bool, null returned #51460
Closed as not planned
@khal3d

Description

@khal3d

Symfony version(s) affected

4.4.50

Description

After the recent release of AMQP v2.0.0 on the 20th of Aug, 2023 (2 days ago), our app stopped working due to the following error:

Return value of Symfony\Component\Messenger\Transport\AmqpExt\Connection::ack() must be of the type bool, null returned

How to reproduce

Steps to reproduce:

  • Install Symfony Messenger 4.4.50.
  • Upgrade the AMQP transport to v2.0.0.
  • Try to acknowledge a message.

Expected behavior:

The ack() method of the Symfony\Component\Messenger\Transport\AmqpExt\Connection class should return a boolean value.

Actual behavior:

The ack() method is returning null.

Possible Solution

Downgrade to AMQP version 1.11.0

pecl install amqp-1.11.0

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0