Skip to content

Commit

Permalink
fix(merge): calls next reducers complete() on completion
Browse files Browse the repository at this point in the history
  • Loading branch information
pitchart committed May 17, 2020
1 parent a899f61 commit bf3a4ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Reducer/Merge.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function complete($result)
foreach (($this->collection)() as $item) {
$result = $this->next->step($result, $item);
}
return $result;
return $this->next->complete($result);
}

}
1 change: 0 additions & 1 deletion src/Reducer/Termination/ToCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


use Pitchart\Transformer\Termination;
use function Pitchart\Transformer\Transducer\to_array;
use function Pitchart\Transformer\transform;

class ToCsv implements Termination
Expand Down

0 comments on commit bf3a4ff

Please sign in to comment.