From 436dba53e50968bc79ba72a3fa0ed3aabcfb0b93 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Wed, 20 Nov 2024 10:06:57 +0100 Subject: [PATCH] Synchronize `RelayProxy` signatures --- .../Component/Cache/Traits/RelayProxy.php | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Symfony/Component/Cache/Traits/RelayProxy.php b/src/Symfony/Component/Cache/Traits/RelayProxy.php index bfcaa0eb18e95..fedb3bd21d23b 100644 --- a/src/Symfony/Component/Cache/Traits/RelayProxy.php +++ b/src/Symfony/Component/Cache/Traits/RelayProxy.php @@ -264,7 +264,7 @@ public function dbsize(): \Relay\Relay|false|int return $this->initializeLazyObject()->dbsize(...\func_get_args()); } - public function dump($key): \Relay\Relay|false|string + public function dump($key): \Relay\Relay|false|null|string { return $this->initializeLazyObject()->dump(...\func_get_args()); } @@ -389,7 +389,7 @@ public function geoadd($key, $lng, $lat, $member, ...$other_triples_and_options) return $this->initializeLazyObject()->geoadd(...\func_get_args()); } - public function geodist($key, $src, $dst, $unit = null): \Relay\Relay|false|float + public function geodist($key, $src, $dst, $unit = null): \Relay\Relay|false|float|null { return $this->initializeLazyObject()->geodist(...\func_get_args()); } @@ -419,7 +419,7 @@ public function georadius_ro($key, $lng, $lat, $radius, $unit, $options = []): m return $this->initializeLazyObject()->georadius_ro(...\func_get_args()); } - public function geosearch($key, $position, $shape, $unit, $options = []): \Relay\Relay|array + public function geosearch($key, $position, $shape, $unit, $options = []): \Relay\Relay|array|false { return $this->initializeLazyObject()->geosearch(...\func_get_args()); } @@ -439,7 +439,7 @@ public function getset($key, $value): mixed return $this->initializeLazyObject()->getset(...\func_get_args()); } - public function getrange($key, $start, $end): \Relay\Relay|false|string + public function getrange($key, $start, $end): mixed { return $this->initializeLazyObject()->getrange(...\func_get_args()); } @@ -524,7 +524,7 @@ public function pfadd($key, $elements): \Relay\Relay|false|int return $this->initializeLazyObject()->pfadd(...\func_get_args()); } - public function pfcount($key): \Relay\Relay|false|int + public function pfcount($key_or_keys): \Relay\Relay|false|int { return $this->initializeLazyObject()->pfcount(...\func_get_args()); } @@ -639,12 +639,12 @@ public function type($key): \Relay\Relay|bool|int|string return $this->initializeLazyObject()->type(...\func_get_args()); } - public function lmove($srckey, $dstkey, $srcpos, $dstpos): \Relay\Relay|false|null|string + public function lmove($srckey, $dstkey, $srcpos, $dstpos): mixed { return $this->initializeLazyObject()->lmove(...\func_get_args()); } - public function blmove($srckey, $dstkey, $srcpos, $dstpos, $timeout): \Relay\Relay|false|null|string + public function blmove($srckey, $dstkey, $srcpos, $dstpos, $timeout): mixed { return $this->initializeLazyObject()->blmove(...\func_get_args()); } @@ -804,7 +804,7 @@ public function hmget($hash, $members): \Relay\Relay|array|false return $this->initializeLazyObject()->hmget(...\func_get_args()); } - public function hrandfield($hash, $options = null): \Relay\Relay|array|false|string + public function hrandfield($hash, $options = null): \Relay\Relay|array|false|null|string { return $this->initializeLazyObject()->hrandfield(...\func_get_args()); } @@ -824,7 +824,7 @@ public function hsetnx($hash, $member, $value): \Relay\Relay|bool return $this->initializeLazyObject()->hsetnx(...\func_get_args()); } - public function hset($key, $mem, $val, ...$kvals): \Relay\Relay|false|int + public function hset($key, ...$keys_and_vals): \Relay\Relay|false|int { return $this->initializeLazyObject()->hset(...\func_get_args()); } @@ -1094,7 +1094,7 @@ public function xack($key, $group, $ids): \Relay\Relay|false|int return $this->initializeLazyObject()->xack(...\func_get_args()); } - public function xadd($key, $id, $values, $maxlen = 0, $approx = false, $nomkstream = false): \Relay\Relay|false|string + public function xadd($key, $id, $values, $maxlen = 0, $approx = false, $nomkstream = false): \Relay\Relay|false|null|string { return $this->initializeLazyObject()->xadd(...\func_get_args()); } @@ -1204,12 +1204,12 @@ public function zrevrangebylex($key, $max, $min, $offset = -1, $count = -1): \Re return $this->initializeLazyObject()->zrevrangebylex(...\func_get_args()); } - public function zrank($key, $rank, $withscore = false): \Relay\Relay|array|false|int + public function zrank($key, $rank, $withscore = false): \Relay\Relay|array|false|int|null { return $this->initializeLazyObject()->zrank(...\func_get_args()); } - public function zrevrank($key, $rank, $withscore = false): \Relay\Relay|array|false|int + public function zrevrank($key, $rank, $withscore = false): \Relay\Relay|array|false|int|null { return $this->initializeLazyObject()->zrevrank(...\func_get_args()); } @@ -1269,7 +1269,7 @@ public function zmscore($key, ...$mems): \Relay\Relay|array|false return $this->initializeLazyObject()->zmscore(...\func_get_args()); } - public function zscore($key, $member): \Relay\Relay|false|float + public function zscore($key, $member): \Relay\Relay|false|float|null { return $this->initializeLazyObject()->zscore(...\func_get_args()); }