diff --git a/src/Operation/Normalize.php b/src/Operation/Normalize.php index bc0de1305..df4fcf6a5 100644 --- a/src/Operation/Normalize.php +++ b/src/Operation/Normalize.php @@ -11,8 +11,7 @@ use Closure; use Generator; -use Iterator; -use loophp\iterators\NormalizeIteratorAggregate; +use loophp\iterators\NormalizeIterableAggregate; /** * @immutable @@ -25,16 +24,16 @@ final class Normalize extends AbstractOperation /** * @pure * - * @return Closure(Iterator): Generator + * @return Closure(iterable): Generator */ public function __invoke(): Closure { return /** - * @param Iterator $iterator + * @param iterable $iterable * * @return Generator */ - static fn (Iterator $iterator): Generator => yield from new NormalizeIteratorAggregate($iterator); + static fn (iterable $iterable): Generator => yield from new NormalizeIterableAggregate($iterable); } }