diff --git a/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php b/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php index b019b08..bc11969 100644 --- a/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php +++ b/src/RedisClient/Command/Traits/Version2x6/ListsCommandsTrait.php @@ -91,7 +91,7 @@ public function lindex($key, $index) { * @return int The length of the list after the insert operation, * or -1 when the value pivot was not found. Or 0 when key was not found. */ - public function linsert($key, $after = true, $pivot, $value) { + public function linsert($key, $after = true, $pivot = '', $value = '') { return $this->returnCommand(['LINSERT'], $key, [$key, $after ? 'AFTER' : 'BEFORE', $pivot, $value]); }