Skip to content

Commit ebfe152

Browse files
authored
Merge pull request #33 from minenok/php84-support
non-nullable null is deprecated
2 parents 04fce75 + 7074cee commit ebfe152

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Collections/ProfilingCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public function listen()
8080
* Start timer.
8181
*
8282
* @param string $name
83-
* @param null $time
83+
* @param float|null $time
8484
*/
85-
protected function start($name, $time = null)
85+
protected function start(string $name, ?float $time = null)
8686
{
8787
$this->started[$name] = $time ?: microtime(true);
8888
}

src/Support/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function lad_pr_stop($name)
4949
* @param Closure|null $action
5050
* @return mixed
5151
*/
52-
function lad_pr_me($name, \Closure $action = null)
52+
function lad_pr_me($name, ?\Closure $action = null)
5353
{
5454
return app(Debugger::class)->profileMe($name, $action);
5555
}

0 commit comments

Comments
 (0)