Skip to content

Commit

Permalink
lrem() function - parameters order fixed
Browse files Browse the repository at this point in the history
Seems predis has different parameters order than REDIS server. Just fixed function to match PHP extension
  • Loading branch information
alex-scott authored Nov 26, 2019
1 parent 057ad8e commit 717e9a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/M6Web/Component/RedisMock/RedisMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public function lindex($key, $index)
return $this->returnPipedInfo(self::$dataValues[$this->storage][$key][$position]);
}

public function lrem($key, $count, $value)
public function lrem($key, $value, $count)
{
if (!isset(self::$dataValues[$this->storage][$key]) || !in_array($value, self::$dataValues[$this->storage][$key]) || $this->deleteOnTtlExpired($key)) {
return $this->returnPipedInfo(0);
Expand Down

0 comments on commit 717e9a1

Please sign in to comment.