You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Beanstalk driver not compatible with current version of Pheanstalk #1
I try to connect to beanstalk with the new syntax:
$this->queue = Pheanstalk::create($config['host'], $config['port'], $config['timeout']);
What do you get instead?
It wants you to use the old syntax:
$this->queue = new Pheanstalk($config['host'], $config['port'], $config['timeout']);
[TypeError] Argument 1 passed to Pheanstalk\Pheanstalk::__construct() must be an instance of Pheanstalk\Connection, string given, called in /home/robert/code/hermes/vendor/codeception/codeception/src/Codeception/Lib/Driver/Beanstalk.php on line 18
changed the title [-]Beanstalk driver not compatible with current version of beanstalk[/-][+]Beanstalk driver not compatible with current version of Pheanstalk[/+]on Nov 22, 2019
Pheanstalk 4 requires PHP 7.1, so we can't use it in Codeception 3 or 4, unless it is possible to make Queue module compatible with both versions.
@SamMousa I noticed that you are maintainer of Pheanstalk , so this issue is yours,
The best solution would be to make https://github.com/Codeception/module-queue compatible with Pheanstalk 3 and 4 and release 1.1.0,
but if it is impossible, it is perfectly fine to make a major version bump and support only Pheanstalk 4. Though in that case it would be great to implement support for iron-io/iron_mq v4 too.
The interface that needs to be implemented seems simple enough. I'll implement a new class and have the queue module decide on which to use based on the version of Pheanstalk that's available.
Activity
[-]Beanstalk driver not compatible with current version of beanstalk[/-][+]Beanstalk driver not compatible with current version of Pheanstalk[/+]Naktibalda commentedon Nov 23, 2019
Pheanstalk 4 requires PHP 7.1, so we can't use it in Codeception 3 or 4, unless it is possible to make Queue module compatible with both versions.
@SamMousa I noticed that you are maintainer of Pheanstalk , so this issue is yours,
The best solution would be to make https://github.com/Codeception/module-queue compatible with Pheanstalk 3 and 4 and release 1.1.0,
but if it is impossible, it is perfectly fine to make a major version bump and support only Pheanstalk 4. Though in that case it would be great to implement support for iron-io/iron_mq v4 too.
SamMousa commentedon Nov 23, 2019
Thanks! I'll have a look
SamMousa commentedon Nov 25, 2019
The interface that needs to be implemented seems simple enough. I'll implement a new class and have the queue module decide on which to use based on the version of Pheanstalk that's available.
Naktibalda commentedon Jan 28, 2020
Fixed by #2
Released as 1.1.0