Skip to content

Commit

Permalink
Fix implementation of spop in PHPRedis implementation (#30546)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miljan9602 authored and taylorotwell committed Nov 11, 2019
1 parent eaf64ac commit 5e10c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Redis/Connections/PhpRedisConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ public function brpop(...$arguments)
* @param int|null $count
* @return mixed|false
*/
public function spop($key, $count = null)
public function spop($key, $count = 1)
{
return $this->command('spop', [$key]);
return $this->command('spop', [$key, $count]);
}

/**
Expand Down

0 comments on commit 5e10c01

Please sign in to comment.