8000 fix: RedisCluster::publish returns a cluster_long_resp · phpredis/phpredis@14f9333 · GitHub
[go: up one dir, main page]

Skip to content

Commit 14f9333

Browse files
PROFeNoMmichael-grunder
authored andcommitted
fix: RedisCluster::publish returns a cluster_long_resp
1 parent 3fdd52b commit 14f9333

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

redis_cluster.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ public function pttl(string $key): RedisCluster|int|false;
704704
/**
705705
* @see Redis::publish
706706
*/
707-
public function publish(string $channel, string $message): RedisCluster|bool;
707+
public function publish(string $channel, string $message): RedisCluster|bool|int;
708708

709709
/**
710710
* @see Redis::pubsub

redis_cluster_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: 1f8038ea72ccc7fd8384d0eba4209702b20d77bd */
2+
* Stub hash: d832720b86414896922f919bcd559fe82426c7a6 */
33

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

577577
#define arginfo_class_RedisCluster_pttl arginfo_class_RedisCluster_expiretime
578578

579-
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_RedisCluster_publish, 0, 2, RedisCluster, MAY_BE_BOOL)
579+
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_RedisCluster_publish, 0, 2, RedisCluster, MAY_BE_BOOL|MAY_BE_LONG)
580580
ZEND_ARG_TYPE_INFO(0, channel, IS_STRING, 0)
581581
ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
582582
ZEND_END_ARG_INFO()

redis_cluster_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: 1f8038ea72ccc7fd8384d0eba4209702b20d77bd */
2+
* Stub hash: d832720b86414896922f919bcd559fe82426c7a6 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisCluster___construct, 0, 0, 1)
55
ZEND_ARG_INFO(0, name)

0 commit comments

Comments
 (0)
0