Skip to content

Beanstalk driver not compatible with current version of Pheanstalk #1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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