From 9f482f21c23ed01c2366d1157843165165579c23 Mon Sep 17 00:00:00 2001 From: "M. Vugteveen" Date: Tue, 8 Oct 2024 20:23:02 +0200 Subject: [PATCH] Fix pop() method signature laravel/framework#53063 (#1504) --- src/RedisQueue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RedisQueue.php b/src/RedisQueue.php index 6c8ae782..f4df046d 100644 --- a/src/RedisQueue.php +++ b/src/RedisQueue.php @@ -128,9 +128,9 @@ function ($payload, $queue, $delay) { * @param string $queue * @return \Illuminate\Contracts\Queue\Job|null */ - public function pop($queue = null) + public function pop($queue = null, $index = 0) { - return tap(parent::pop($queue), function ($result) use ($queue) { + return tap(parent::pop($queue, $index), function ($result) use ($queue) { if ($result) { $this->event($this->getQueue($queue), new JobReserved($result->getReservedJob())); }