Skip to content

Commit

Permalink
refactor: Update Split operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 8, 2021
1 parent 88cae79 commit 7502dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Operation/Split.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static function (Iterator $iterator) use ($type, $callbacks): Generator {
* @psalm-param bool $carry
* @psalm-param callable(T, TKey, Iterator<TKey, T>): bool $callable
*/
static fn (bool $carry, callable $callable): bool => ($callable($current, $key, $iterator)) || $carry;
static fn (bool $carry, callable $callable): bool => $carry || ($callable($current, $key, $iterator));

foreach ($iterator as $key => $value) {
$callbackReturn = array_reduce(
Expand Down

0 comments on commit 7502dc0

Please sign in to comment.