Skip to content

Commit

Permalink
Add null default
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Dec 6, 2021
1 parent 7177eab commit 8933d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Barrier.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function register(int $count = 1): void
$this->count += $count;
}

public function await(?Cancellation $cancellation): void
public function await(?Cancellation $cancellation = null): void
{
$this->completion->getFuture()->await($cancellation);
}
Expand Down

0 comments on commit 8933d35

Please sign in to comment.