Skip to content

Commit

Permalink
[REMOVE] PHP 8.4 deprecation warnings:
Browse files Browse the repository at this point in the history
- Implicitly nullable parameter types are now deprecated.
  • Loading branch information
yabooodya committed Jan 24, 2025
1 parent 56c87c5 commit 664c7bd
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 664c7bd

Please sign in to comment.