Skip to content

Commit 48d5821

Browse files
authored
Merge pull request #83 from dimtrovich/81-progress-bar
fix(test): IteratorAggregate compatibility on php 8.1
2 parents 23794c5 + ac25c67 commit 48d5821

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Output/ProgressBarTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Ahc\Cli\Test\CliTestCase;
1818
use ArrayIterator;
1919
use IteratorAggregate;
20+
use Traversable;
2021
use UnexpectedValueException;
2122

2223
class ProgressBarTest extends CliTestCase
@@ -66,7 +67,7 @@ public function test_progress_bar_each()
6667
public $b = 2;
6768
public $c = 3;
6869

69-
public function getIterator()
70+
public function getIterator(): Traversable
7071
{
7172
return new ArrayIterator($this);
7273
}

0 commit comments

Comments
 (0)