diff --git a/src/Internal/Iter/PipelineIterator.php b/src/Internal/Iter/PipelineIterator.php index 1bf48a0..6c12a75 100644 --- a/src/Internal/Iter/PipelineIterator.php +++ b/src/Internal/Iter/PipelineIterator.php @@ -15,8 +15,9 @@ * @internal * @template-covariant T * @template-implements Iterator + * @template-implements \IteratorAggregate */ -final class PipelineIterator implements Iterator +final class PipelineIterator implements Iterator, \IteratorAggregate { /** @var ?Future */ private ?Future $complete = null; diff --git a/src/Iterator.php b/src/Iterator.php index c66baab..efb6cd0 100644 --- a/src/Iterator.php +++ b/src/Iterator.php @@ -9,9 +9,9 @@ /** * @api * @template-covariant T - * @template-extends \IteratorAggregate + * @template-extends \Traversable */ -interface Iterator extends \IteratorAggregate +interface Iterator extends \Traversable { public function stop(?Cancellation $cancellation = null): void;