Skip to content

Commit

Permalink
SA: Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed May 6, 2022
1 parent de6a336 commit c835e1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public function get($key, $default = null): CollectionInterface
*/
public function getIterator(): Traversable
{
yield from $this->innerIterator->getIterator();
return $this->innerIterator->getIterator();
}

public function group(): CollectionInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Operation/All.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __invoke(): Closure
{
return
/**
* @return Closure(iterable<TKey, T>): Generator<int, T>|Generator<TKey, T>
* @return Closure(iterable<TKey, T>): ($normalize is true ? Generator<int, T> : Generator<TKey, T>)
*/
static fn (bool $normalize): Closure =>
/**
Expand Down

0 comments on commit c835e1c

Please sign in to comment.