Skip to content

Commit

Permalink
Update Reduction operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed May 26, 2020
1 parent 550819b commit 57cedbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Operation/Reduction.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ final class Reduction implements Operation
* Reduction constructor.
*
* @param callable $callback
* @param mixed $initial
* @param mixed|null $initial
*/
public function __construct(callable $callback, $initial)
public function __construct(callable $callback, $initial = null)
{
$this->callback = $callback;
$this->initial = $initial;
Expand Down

0 comments on commit 57cedbc

Please sign in to comment.