Skip to content

Commit

Permalink
Merge pull request #2 from integer-net/php-8-compatibility
Browse files Browse the repository at this point in the history
php8.1 compatibility: applied patch
  • Loading branch information
DomBra27 authored Nov 24, 2023
2 parents 869912e + 4f553fe commit e514119
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Iterators/Combinations.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(array $dataset = [], $length = null)
/**
* {@inheritdoc}
*/
public function count()
public function count(): int
{
$i = 0;

Expand Down Expand Up @@ -62,7 +62,7 @@ public function current()
*
* @return void
*/
public function next()
public function next(): void
{
if ($this->nextHelper()) {
++$this->key;
Expand All @@ -85,7 +85,7 @@ public function rewind()
*
* @return bool
*/
public function valid()
public function valid(): bool
{
return 0 <= $this->key;
}
Expand All @@ -96,7 +96,7 @@ public function valid()
* @return bool
* Return true or false
*/
protected function nextHelper()
protected function nextHelper(): bool
{
$i = $this->length - 1;

Expand Down

0 comments on commit e514119

Please sign in to comment.