8000 Fix Redis::mget signature · phpredis/phpredis@5d29324 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d29324

Browse files
yatsukhnenkomichael-grunder
authored andcommitted
Fix Redis::mget signature
1 parent a4a283a commit 5d29324

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

redis.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,11 +2171,11 @@ public function ltrim(string $key, int $start , int $end): Redis|bool;
21712171
* Get one ore more string keys.
21722172
*
21732173
* @param array $keys The keys to retrieve
2174-
* @return Redis|array an array of keys with their values.
2174+
* @return Redis|array|false an array of keys with their values.
21752175
*
21762176
* @example $redis->mget(['key1', 'key2']);
21772177
*/
2178-
public function mget(array $keys): Redis|array;
2178+
public function mget(array $keys): Redis|array|false;
21792179

21802180
public function migrate(string $host, int $port, string|array $key, int $dstdb, int $timeout,
21812181
bool $copy = false, bool $replace = false,

redis_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: f98761a9bf8bfd22f34609b4d7c0c26f69248668 */
2+
* Stub hash: 6afb67851068637b92e885e8a16ca6818061ed6e */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Redis___construct, 0, 0, 0)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "null")
@@ -553,7 +553,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Redis_ltrim, 0, 3, Red
553553
ZEND_ARG_TYPE_INFO(0, end, IS_LONG, 0)
554554
ZEND_END_ARG_INFO()
555555

556-
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Redis_mget, 0, 1, Redis, MAY_BE_ARRAY)
556+
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Redis_mget, 0, 1, Redis, MAY_BE_ARRAY|MAY_BE_FALSE)
557557
ZEND_ARG_TYPE_INFO(0, keys, IS_ARRAY, 0)
558558
ZEND_END_ARG_INFO()
559559

redis_legacy_arginfo.h

Lines changed: 1 addition & 1 deletion
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: f98761a9bf8bfd22f34609b4d7c0c26f69248668 */
2+
* Stub hash: 6afb67851068637b92e885e8a16ca6818061ed6e */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Redis___construct, 0, 0, 0)
55
ZEND_ARG_INFO(0, options)

0 commit comments

Comments
 (0)
0