diff --git a/redis/Redis.php b/redis/Redis.php index e7b600dad..5538b795e 100644 --- a/redis/Redis.php +++ b/redis/Redis.php @@ -373,9 +373,8 @@ public function setnx( $key, $value ) {} /** * Remove specified keys. * - * @param string|array $key1 An array of keys, or an undefined number of parameters, each a key: key1 key2 key3 ... keyN - * @param string $key2 ... - * @param string $key3 ... + * @param int|string|array $key1 An array of keys, or an undefined number of parameters, each a key: key1 key2 key3 ... keyN + * @param int|string ...$otherKeys * @return int Number of keys deleted. * @link https://redis.io/commands/del * @example @@ -388,7 +387,7 @@ public function setnx( $key, $value ) {} * $redis->delete(array('key3', 'key4')); // return 2 * */ - public function del( $key1, $key2 = null, $key3 = null ) {} + public function del( $key1, ...$otherKeys) {} /** * @see del() diff --git a/redis/RedisCluster.php b/redis/RedisCluster.php index 2a0e5b343..07ccb4770 100644 --- a/redis/RedisCluster.php +++ b/redis/RedisCluster.php @@ -225,7 +225,7 @@ public function msetnx(array $array) { } * $redisCluster->del(array('key3', 'key4')); // return 2 * */ - public function del($key1, $key2 = null, $key3 = null) { } + public function del($key1, ...$otherKeys) { } /** * Set the string value in argument as value of the key, with a time to live.