Skip to content

Commit

Permalink
Update Filter operation
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 27, 2020
1 parent afbcac3 commit 5f4d134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Operation/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __invoke(): Closure
* @psalm-return Generator<TKey, T>
*/
static function (Iterator $iterator, array $callbacks): Generator {
yield from array_reduce(
return yield from array_reduce(
$callbacks,
static function (Iterator $carry, callable $callback): CallbackFilterIterator {
return new CallbackFilterIterator($carry, $callback);
Expand Down

0 comments on commit 5f4d134

Please sign in to comment.