Skip to content

Commit

Permalink
Fix PHP 8.4 deprecation warning (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
eusonlito authored Dec 2, 2024
1 parent e9ff300 commit d409737
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Recorders/DumpRecorder/MultiDumpHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ public function dump(mixed $value): void
}
}

public function addHandler(callable $callable = null): self
public function addHandler(?callable $callable = null): self
{
$this->handlers[] = $callable;
if ($callable) {
$this->handlers[] = $callable;
}

return $this;
}
Expand Down

0 comments on commit d409737

Please # to comment.