laravel-queue-rabbitmq icon indicating copy to clipboard operation
laravel-queue-rabbitmq copied to clipboard

PHP 8 Support

Open meteguerlek opened this issue 4 years ago • 3 comments

meteguerlek avatar Dec 22 '20 23:12 meteguerlek

currently not possible due to the delay in the client library https://github.com/php-amqplib/php-amqplib/pull/858

JulianMar avatar Jan 08 '21 11:01 JulianMar

https://github.com/php-amqplib/php-amqplib/pull/858 It is merged!

stadeleon avatar Feb 25 '21 23:02 stadeleon

phpamqplib/php-amqplib released a v3.0.0 RC build that has support for PHP 8. This however introduces issues with this library with regards to it requiring a 2.12.x version of amqplib. Aliasing this to the v3 RC build like I have done as demonstrated in #413 throws a "rest" option exception. Using the php artisan queue:work command as opposed to php artisan rabbitmq:consume circumvents this and does not cause the aforementioned exception to be thrown.

Best to either implement amqplib directly if you need PHP8 and amqp now and wish to use php artisan rabbitmq:consume, or wait for this package to be updated if PHP8 isn't urgent for you.

In addition; it may also cause #396 exception to be thrown, however I am still researching which situation exactly causes this. I have had no luck reproducing this on another system/environment, so if anyone could test this hypothesis on their side that would be appreciated.

yuiidev avatar Mar 10 '21 13:03 yuiidev

PHP 8 support should be good now.

M-Porter avatar Jan 25 '23 19:01 M-Porter