Skip to content

Beanstalk driver not compatible with current version of Pheanstalk #1

@rpacker

Description

@rpacker

What are you trying to achieve?

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  

Details

  • Codeception version:
    Codeception 3.1.2
  • PHP Version:
    PHP 7.2.24-
  • Operating System:
    Linux Mint

Metadata

Metadata

Assignees

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