Skip to content

Commit e514119

Browse files
authored
Merge pull request #2 from integer-net/php-8-compatibility
php8.1 compatibility: applied patch
2 parents 869912e + 4f553fe commit e514119

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Iterators/Combinations.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(array $dataset = [], $length = null)
3232
/**
3333
* {@inheritdoc}
3434
*/
35-
public function count()
35+
public function count(): int
3636
{
3737
$i = 0;
3838

@@ -62,7 +62,7 @@ public function current()
6262
*
6363
* @return void
6464
*/
65-
public function next()
65+
public function next(): void
6666
{
6767
if ($this->nextHelper()) {
6868
++$this->key;
@@ -85,7 +85,7 @@ public function rewind()
8585
*
8686
* @return bool
8787
*/
88-
public function valid()
88+
public function valid(): bool
8989
{
9090
return 0 <= $this->key;
9191
}
@@ -96,7 +96,7 @@ public function valid()
9696
* @return bool
9797
* Return true or false
9898
*/
99-
protected function nextHelper()
99+
protected function nextHelper(): bool
100100
{
101101
$i = $this->length - 1;
102102

0 commit comments

Comments
 (0)