diff --git a/src/Fork.php b/src/Fork.php index 1c44458..f4f322e 100644 --- a/src/Fork.php +++ b/src/Fork.php @@ -35,7 +35,7 @@ public static function new(): self return new self(); } - public function before(callable $child = null, callable $parent = null): self + public function before(?callable $child = null, ?callable $parent = null): self { $this->toExecuteBeforeInChildTask = $child; $this->toExecuteBeforeInParentTask = $parent; @@ -43,7 +43,7 @@ public function before(callable $child = null, callable $parent = null): self return $this; } - public function after(callable $child = null, callable $parent = null): self + public function after(?callable $child = null, ?callable $parent = null): self { $this->toExecuteAfterInChildTask = $child; $this->toExecuteAfterInParentTask = $parent;