From a5d5df4b6856f97f8838cfe3d3dbcb240cbca068 Mon Sep 17 00:00:00 2001 From: Pavlo Yatsukhnenko Date: Tue, 7 Sep 2021 20:12:27 +0300 Subject: [PATCH] Add stub-based arginfo for RedisSentinel::myid --- redis_sentinel.stub.php | 2 ++ redis_sentinel_arginfo.h | 7 ++++++- redis_sentinel_legacy_arginfo.h | 6 +++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/redis_sentinel.stub.php b/redis_sentinel.stub.php index 051fc6d..20f8075 100644 --- a/redis_sentinel.stub.php +++ b/redis_sentinel.stub.php @@ -27,6 +27,8 @@ class RedisSentinel { /** @return array|bool|RedisSentinel */ public function masters(); + public function myid(): string; + /** @return bool|RedisSentinel */ public function ping(); diff --git a/redis_sentinel_arginfo.h b/redis_sentinel_arginfo.h index 0230002..980719d 100644 --- a/redis_sentinel_arginfo.h +++ b/redis_sentinel_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 25dd3e55b8118797bf37ac517c2380bb77efdcea */ + * Stub hash: 9a7a43f9bee2da879c1419d203ddfd12e6052e25 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisSentinel___construct, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0) @@ -25,6 +25,9 @@ ZEND_END_ARG_INFO() #define arginfo_class_RedisSentinel_masters arginfo_class_RedisSentinel_flushconfig +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_RedisSentinel_myid, 0, 0, IS_STRING, 0) +ZEND_END_ARG_INFO() + #define arginfo_class_RedisSentinel_ping arginfo_class_RedisSentinel_flushconfig ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisSentinel_reset, 0, 0, 1) @@ -43,6 +46,7 @@ ZEND_METHOD(RedisSentinel, flushconfig); ZEND_METHOD(RedisSentinel, getMasterAddrByName); ZEND_METHOD(RedisSentinel, master); ZEND_METHOD(RedisSentinel, masters); +ZEND_METHOD(RedisSentinel, myid); ZEND_METHOD(RedisSentinel, ping); ZEND_METHOD(RedisSentinel, reset); ZEND_METHOD(RedisSentinel, sentinels); @@ -57,6 +61,7 @@ static const zend_function_entry class_RedisSentinel_methods[] = { ZEND_ME(RedisSentinel, getMasterAddrByName, arginfo_class_RedisSentinel_getMasterAddrByName, ZEND_ACC_PUBLIC) ZEND_ME(RedisSentinel, master, arginfo_class_RedisSentinel_master, ZEND_ACC_PUBLIC) ZEND_ME(RedisSentinel, masters, arginfo_class_RedisSentinel_masters, ZEND_ACC_PUBLIC) + ZEND_ME(RedisSentinel, myid, arginfo_class_RedisSentinel_myid, ZEND_ACC_PUBLIC) ZEND_ME(RedisSentinel, ping, arginfo_class_RedisSentinel_ping, ZEND_ACC_PUBLIC) ZEND_ME(RedisSentinel, reset, arginfo_class_RedisSentinel_reset, ZEND_ACC_PUBLIC) ZEND_ME(RedisSentinel, sentinels, arginfo_class_RedisSentinel_sentinels, ZEND_ACC_PUBLIC) diff --git a/redis_sentinel_legacy_arginfo.h b/redis_sentinel_legacy_arginfo.h index 0fd87ec..7dd2d8f 100644 --- a/redis_sentinel_legacy_arginfo.h +++ b/redis_sentinel_legacy_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 25dd3e55b8118797bf37ac517c2380bb77efdcea */ + * Stub hash: 9a7a43f9bee2da879c1419d203ddfd12e6052e25 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisSentinel___construct, 0, 0, 1) ZEND_ARG_INFO(0, host) @@ -25,6 +25,8 @@ ZEND_END_ARG_INFO() #define arginfo_class_RedisSentinel_masters arginfo_class_RedisSentinel_flushconfig +#define arginfo_class_RedisSentinel_myid arginfo_class_RedisSentinel_flushconfig + #define arginfo_class_RedisSentinel_ping arginfo_class_RedisSentinel_flushconfig ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisSentinel_reset, 0, 0, 1) @@ -43,6 +45,7 @@ ZEND_METHOD(RedisSentinel, flushconfig); ZEND_METHOD(RedisSentinel, getMasterAddrByName); ZEND_METHOD(RedisSentinel, master); ZEND_METHOD(RedisSentinel, masters); +ZEND_METHOD(RedisSentinel, myid); ZEND_METHOD(RedisSentinel, ping); ZEND_METHOD(RedisSentinel, reset); ZEND_METHOD(RedisSentinel, sentinels); @@ -57,6 +60,7 @@ static const zend_function_entry class_RedisSentinel_methods[] = { ZEND_ME(RedisSentinel, getMasterAddrByName, arginfo_class_RedisSentinel_getMasterAddrByName, ZEND_ACC_PUBLIC) ZEND_ME(RedisSentinel, master, arginfo_class_RedisSentinel_master, ZEND_ACC_PUBLIC) ZEND_ME(RedisSentinel, masters, arginfo_class_RedisSentinel_masters, ZEND_ACC_PUBLIC) + ZEND_ME(RedisSentinel, myid, arginfo_class_RedisSentinel_myid, ZEND_ACC_PUBLIC) ZEND_ME(RedisSentinel, ping, arginfo_class_RedisSentinel_ping, ZEND_ACC_PUBLIC) ZEND_ME(RedisSentinel, reset, arginfo_class_RedisSentinel_reset, ZEND_ACC_PUBLIC) ZEND_ME(RedisSentinel, sentinels, arginfo_class_RedisSentinel_sentinels, ZEND_ACC_PUBLIC)