Skip to content

Commit

Permalink
Fix pop() method signature laravel/framework#53063 (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
it-can authored Oct 8, 2024
1 parent cc20648 commit 9f482f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RedisQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
Expand Down

0 comments on commit 9f482f2

Please sign in to comment.