From 016a823a8176bf015669c94af04b49865c7b1ceb Mon Sep 17 00:00:00 2001 From: Tilen Leban Date: Tue, 20 Feb 2018 11:40:29 +0100 Subject: [PATCH] fixes zadd method call signature to be compatible with M6Web/RedisMock --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index c7957aa..f69bd4c 100644 --- a/src/Client.php +++ b/src/Client.php @@ -141,7 +141,7 @@ private function atomicPush($jobId, $class, $args = [], $queue = self::QUEUE, $r $this->redis->sadd($this->name('queues'), $queue); $this->redis->lpush($this->name('queue', $queue), $job); } else { - $this->redis->zadd($this->name('schedule'), [$job => $doAt]); + $this->redis->zadd($this->name('schedule'), $doAt, $job); } }