diff options
author | Remi Collet <remi@remirepo.net> | 2020-09-16 11:18:56 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2021-08-26 09:53:07 +0300 |
commit | 10feb234303ea36c203d80bc2d606685456d26e1 (patch) | |
tree | 0cca516570210a4df5dca323dbf6a0a8ef938404 /redis_sentinel.stub.php | |
parent | edac508ef5fc0b397f445504c01593b44e001201 (diff) |
drop return type hinting
Diffstat (limited to 'redis_sentinel.stub.php')
-rw-r--r-- | redis_sentinel.stub.php | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/redis_sentinel.stub.php b/redis_sentinel.stub.php index 11309c0b..34394ee6 100644 --- a/redis_sentinel.stub.php +++ b/redis_sentinel.stub.php @@ -6,23 +6,33 @@ class RedisSentinel { public function __construct(string $host, int $port = 26379, float $timeout = 0, mixed $persistent = NULL, int $retry_interval = 0, float $read_timeout = 0); - public function ckquorum(string $master): bool; + /** @return bool|RedisSentinel */ + public function ckquorum(string $master); - public function failover(string $master): bool; + /** @return bool|RedisSentinel */ + public function failover(string $master); - public function flushconfig(): bool; + /** @return bool|RedisSentinel */ + public function flushconfig(); - public function getMasterAddrByName(string $master): array|false; + /** @return array|bool|RedisSentinel */ + public function getMasterAddrByName(string $master); - public function master(string $master): array|false; + /** @return array|bool|RedisSentinel */ + public function master(string $master); - public function masters(): array|false; + /** @return array|bool|RedisSentinel */ + public function masters(): array; - public function ping(): bool; + /** @return bool|RedisSentinel */ + public function ping(); - public function reset(string $pattern): bool; + /** @return bool|RedisSentinel */ + public function reset(string $pattern); - public function sentinels(string $master): array|false; + /** @return array|bool|RedisSentinel */ + public function sentinels(string $master); - public function slaves(string $master): array|false; + /** @return array|bool|RedisSentinel */ + public function slaves(string $master); } |