Skip to content

Commit

Permalink
refactor: Update Prepend operation - use PHP 7.4 code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Feb 23, 2021
1 parent 35b03cc commit b990edb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Operation/Prepend.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ public function __invoke(): Closure
*
* @psalm-return Iterator<int|TKey, T>
*/
static function (Iterator $iterator) use ($items): Iterator {
return new MultipleIterableIterator($items, $iterator);
};
static fn (Iterator $iterator): Iterator => new MultipleIterableIterator($items, $iterator);
}
}

0 comments on commit b990edb

Please sign in to comment.