Skip to content

Commit

Permalink
Merge pull request #66 from yabooodya/fix/php-84-deprecations
Browse files Browse the repository at this point in the history
[REMOVE] PHP 8.4 deprecation warnings
  • Loading branch information
freekmurze authored Jan 27, 2025
2 parents 56c87c5 + 664c7bd commit 24cd507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fork.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ 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;

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;
Expand Down

0 comments on commit 24cd507

Please sign in to comment.