diff --git a/src/Iterators/Combinations.php b/src/Iterators/Combinations.php index e4a9dca..4bd9278 100644 --- a/src/Iterators/Combinations.php +++ b/src/Iterators/Combinations.php @@ -32,7 +32,7 @@ public function __construct(array $dataset = [], $length = null) /** * {@inheritdoc} */ - public function count() + public function count(): int { $i = 0; @@ -62,7 +62,7 @@ public function current() * * @return void */ - public function next() + public function next(): void { if ($this->nextHelper()) { ++$this->key; @@ -85,7 +85,7 @@ public function rewind() * * @return bool */ - public function valid() + public function valid(): bool { return 0 <= $this->key; } @@ -96,7 +96,7 @@ public function valid() * @return bool * Return true or false */ - protected function nextHelper() + protected function nextHelper(): bool { $i = $this->length - 1;