Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 203ffbb

Browse files
committed
Fix RedisCluster [hz]scan iteratior reference
1 parent abcca1b commit 203ffbb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

redis_cluster.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function hmget(string $key, array $members): array;
145145

146146
public function hmset(string $key, array $key_values): bool;
147147

148-
public function hscan(string $key, int $iterator, ?string $pattern = null, int $count = 0): array|bool;
148+
public function hscan(string $key, int &$iterator, ?string $pattern = null, int $count = 0): array|bool;
149149

150150
public function hset(string $key, string $member, mixed $value): int;
151151

@@ -383,7 +383,7 @@ public function zrevrangebyscore(string $key, string $min, string $max, array $o
383383

384384
public function zrevrank(string $key, mixed $member): int;
385385

386-
public function zscan(string $key, int $iterator, ?string $pattern = null, int $count = 0): bool|array;
386+
public function zscan(string $key, int &$iterator, ?string $pattern = null, int $count = 0): bool|array;
387387

388388
public function zscore(string $key): float;
389389

redis_cluster_arginfo.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 2d9eba2d8dcf0e7bf5433232c8d5d0c00c188829 */
2+
* Stub hash: 9ccc5396c168f2b6fccca751b8122b6fabc934b7 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisCluster___construct, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 1)
@@ -306,7 +306,7 @@ ZEND_END_ARG_INFO()
306306

307307
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_RedisCluster_hscan, 0, 2, MAY_BE_ARRAY|MAY_BE_BOOL)
308308
ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
309-
ZEND_ARG_TYPE_INFO(0, iterator, IS_LONG, 0)
309+
ZEND_ARG_TYPE_INFO(1, iterator, IS_LONG, 0)
310310
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
311311
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, count, IS_LONG, 0, "0")
312312
ZEND_END_ARG_INFO()
@@ -826,7 +826,7 @@ ZEND_END_ARG_INFO()
826826

827827
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_RedisCluster_zscan, 0, 2, MAY_BE_BOOL|MAY_BE_ARRAY)
828828
ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
829-
ZEND_ARG_TYPE_INFO(0, iterator, IS_LONG, 0)
829+
ZEND_ARG_TYPE_INFO(1, iterator, IS_LONG, 0)
830830
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
831831
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, count, IS_LONG, 0, "0")
832832
ZEND_END_ARG_INFO()

redis_cluster_legacy_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 2d9eba2d8dcf0e7bf5433232c8d5d0c00c188829 */
2+
* Stub hash: 9ccc5396c168f2b6fccca751b8122b6fabc934b7 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisCluster___construct, 0, 0, 1)
55
ZEND_ARG_INFO(0, name)
@@ -269,7 +269,7 @@ ZEND_END_ARG_INFO()
269269

270270
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisCluster_hscan, 0, 0, 2)
271271
ZEND_ARG_INFO(0, key)
272-
ZEND_ARG_INFO(0, iterator)
272+
ZEND_ARG_INFO(1, iterator)
273273
ZEND_ARG_INFO(0, pattern)
274274
ZEND_ARG_INFO(0, count)
275275
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)