Skip to content

Commit

Permalink
Fixed collection iterator highlight in phpstorm
Browse files Browse the repository at this point in the history
  • Loading branch information
TemirkhanN committed Apr 14, 2023
1 parent 76a34c0 commit 28bd8a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Collection.php
Original file line number Diff line number Diff line change
@@ -26,6 +26,9 @@ public function __construct(iterable $items)
$this->items = Internal\Iterating::toArray($items);
}

/**
* @return Traversable<T>
*/
public function getIterator(): Traversable
{
yield from $this->items;

0 comments on commit 28bd8a2

Please sign in to comment.