Skip to content

Commit 50e5405

Browse files
committed
Fix Arginfo / zpp mismatch for DUMP command
1 parent 54d62c7 commit 50e5405

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

redis.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ public function discard(): Redis|bool;
991991
* $binary = $redis->dump('zset');
992992
* $redis->restore('new-zset', 0, $binary);
993993
*/
994-
public function dump(string $key): Redis|string;
994+
public function dump(string $key): Redis|string|false;
995995

996996
/**
997997
* Have Redis repeat back an arbitrary string to the client.

redis_arginfo.h

Lines changed: 4 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: d6839707b66ecf4460374deea10a528bf0c5ea41 */
2+
* Stub hash: 21f3434814d9fa077a9a81c8ba114c3faf079e85 */
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")
@@ -179,7 +179,9 @@ ZEND_END_ARG_INFO()
179179

180180
#define arginfo_class_Redis_discard arginfo_class_Redis_bgSave
181181

182-
#define arginfo_class_Redis_dump arginfo_class_Redis_debug
182+
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Redis_dump, 0, 1, Redis, MAY_BE_STRING|MAY_BE_FALSE)
183+
ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
184+
ZEND_END_ARG_INFO()
183185

184186
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Redis_echo, 0, 1, Redis, MAY_BE_STRING|MAY_BE_FALSE)
185187
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)

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: d6839707b66ecf4460374deea10a528bf0c5ea41 */
2+
* Stub hash: 21f3434814d9fa077a9a81c8ba114c3faf079e85 */
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)