Skip to content

Latest release 0.10.25 not compatible with php 7.4 #1385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alxlnk opened this issue May 9, 2025 · 3 comments
Closed

Latest release 0.10.25 not compatible with php 7.4 #1385

alxlnk opened this issue May 9, 2025 · 3 comments

Comments

@alxlnk
Copy link

alxlnk commented May 9, 2025

"php": "^7.4|^8.0",

But uses PHP 8 introduced features:

throw new \InvalidArgumentException(sprintf('The consumer must be instance of "%s" got "%s"', AmqpConsumer::class, $consumer::class));

throw new \InvalidArgumentException(sprintf('The consumer must be instance of "%s" got "%s"', AmqpConsumer::class, $consumer::class));

'::class' on objects is only allowed since PHP 8.0

If run on PHP 7.4 it cause "Cannot use ::class with dynamic class name"

@alxlnk
Copy link
Author

alxlnk commented May 9, 2025

Also in amqp-tools

throw new InvalidDestinationException(sprintf('The destination must be an instance of %s but got %s.', AmqpTopic::class.'|'.AmqpQueue::class, $dest::class));

throw new InvalidDestinationException(sprintf('The destination must be an instance of %s but got %s.', AmqpTopic::class.'|'.AmqpQueue::class, $dest::class));

@makasim
Copy link
Member

makasim commented May 10, 2025

0.10.26 with the dropped 7.4 version has been released.

If you want to continue using PHP 7.4, pin the 0.10.24 version in your compose.

@makasim makasim closed this as completed May 10, 2025
@makasim
Copy link
Member

makasim commented May 10, 2025

duplicates #1381, #1378

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants