Skip to content

Commit cd066db

Browse files
authored
Merge pull request #1 from abouvier/patch-1
Add support for PHP 8.1
2 parents aea6ee0 + 25468af commit cd066db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/CachingGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Generator;
66
use OuterIterator;
7+
use ReturnTypeWillChange;
78

89
class CachingGenerator implements OuterIterator
910
{
@@ -18,6 +19,7 @@ public function __construct(Generator $generator)
1819
$this->addCurrentToCache();
1920
}
2021

22+
#[ReturnTypeWillChange]
2123
public function current()
2224
{
2325
return current($this->cache);

0 commit comments

Comments
 (0)