Skip to content

Commit

Permalink
fix: Use array-key instead of int|string .
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 7, 2022
1 parent 89510e0 commit 0e5610a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SimpleCachingIteratorAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @template TKey of array-key
* @template T
*
* @implements IteratorAggregate<int|string, T>
* @implements IteratorAggregate<array-key, T>
*/
final class SimpleCachingIteratorAggregate implements IteratorAggregate
{
Expand Down
4 changes: 2 additions & 2 deletions src/UnpackIterableAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
final class UnpackIterableAggregate implements IteratorAggregate
{
/**
* @var iterable<int|string, array{0: TKey, 1: T}>
* @var iterable<array-key, array{0: TKey, 1: T}>
*/
private iterable $iterable;

/**
* @param iterable<int|string, array{0: TKey, 1: T}> $iterable
* @param iterable<array-key, array{0: TKey, 1: T}> $iterable
*/
public function __construct(iterable $iterable)
{
Expand Down

0 comments on commit 0e5610a

Please sign in to comment.