From 4f553fe4b81221c5e19985c2b3c6a4bfdf64f113 Mon Sep 17 00:00:00 2001 From: Dominik Brachmanski Date: Mon, 20 Nov 2023 10:29:05 +0100 Subject: [PATCH] php8.1 compatibility: applied patch --- src/Iterators/Combinations.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;