Skip to content

Commit cb54a40

Browse files
committed
fix: Static analysis fix.
This iterator returns `TKey` during the first loop, but returns `array-key` during a second loop.
1 parent 985b867 commit cb54a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SimpleCachingIteratorAggregate.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @template TKey
2121
* @template T
2222
*
23-
* @implements IteratorAggregate<TKey, T>
23+
* @implements IteratorAggregate<array-key|TKey, T>
2424
*/
2525
final class SimpleCachingIteratorAggregate implements IteratorAggregate
2626
{
@@ -44,7 +44,7 @@ public function __construct(Iterator $iterator)
4444
}
4545

4646
/**
47-
* @return Generator<TKey, T>
47+
* @return Generator<array-key|TKey, T>
4848
*/
4949
public function getIterator(): Generator
5050
{

0 commit comments

Comments
 (0)