From c551fc21f9d805a61fd4720d9ca79b43e4434da1 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 2 Feb 2021 16:29:33 +0100 Subject: [PATCH] Add some return types --- src/Client.php | 2 +- src/Command/Processor/ProcessorChain.php | 4 ++-- src/Connection/Aggregate/PredisCluster.php | 4 ++-- src/Connection/Aggregate/RedisCluster.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Client.php b/src/Client.php index bbb670e8..bcea14b7 100644 --- a/src/Client.php +++ b/src/Client.php @@ -527,7 +527,7 @@ class Client implements ClientInterface, \IteratorAggregate } /** - * {@inheritdoc} + * @return \Traversable */ public function getIterator() { diff --git a/src/Command/Processor/ProcessorChain.php b/src/Command/Processor/ProcessorChain.php index 0a4768b0..efe9b4a5 100644 --- a/src/Command/Processor/ProcessorChain.php +++ b/src/Command/Processor/ProcessorChain.php @@ -71,7 +71,7 @@ class ProcessorChain implements \ArrayAccess, ProcessorInterface /** * Returns an iterator over the list of command processor in the chain. * - * @return \ArrayIterator + * @return \Traversable */ public function getIterator() { @@ -89,7 +89,7 @@ class ProcessorChain implements \ArrayAccess, ProcessorInterface } /** - * {@inheritdoc} + * @return bool */ public function offsetExists($index) { diff --git a/src/Connection/Aggregate/PredisCluster.php b/src/Connection/Aggregate/PredisCluster.php index 33f98bf2..25ff4a86 100644 --- a/src/Connection/Aggregate/PredisCluster.php +++ b/src/Connection/Aggregate/PredisCluster.php @@ -176,7 +176,7 @@ class PredisCluster implements ClusterInterface, \IteratorAggregate, \Countable } /** - * {@inheritdoc} + * @return int */ public function count() { @@ -184,7 +184,7 @@ class PredisCluster implements ClusterInterface, \IteratorAggregate, \Countable } /** - * {@inheritdoc} + * @return \Traversable */ public function getIterator() { diff --git a/src/Connection/Aggregate/RedisCluster.php b/src/Connection/Aggregate/RedisCluster.php index c749cc83..3d80445a 100644 --- a/src/Connection/Aggregate/RedisCluster.php +++ b/src/Connection/Aggregate/RedisCluster.php @@ -600,7 +600,7 @@ class RedisCluster implements ClusterInterface, \IteratorAggregate, \Countable } /** - * {@inheritdoc} + * @return int */ public function count() { @@ -608,7 +608,7 @@ class RedisCluster implements ClusterInterface, \IteratorAggregate, \Countable } /** - * {@inheritdoc} + * @return \Traversable */ public function getIterator() {