Skip to content

Commit 47e7b55

Browse files
authored
Merge pull request #4 from joanhey/patch-1
fix: update PrettyPageHandler.php fix explicit nullable
2 parents dea2feb + 0ba812b commit 47e7b55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exception/Handler/PrettyPageHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public function addDataTableCallback($label, /* callable */ $callback)
383383
throw new InvalidArgumentException('Expecting callback argument to be callable');
384384
}
385385

386-
$this->extraTables[$label] = function (\Leaf\Exceptions\Inspector $inspector = null) use ($callback) {
386+
$this->extraTables[$label] = function (?\Leaf\Exceptions\Inspector $inspector = null) use ($callback) {
387387
try {
388388
$result = call_user_func($callback, $inspector);
389389

0 commit comments

Comments
 (0)