From 7074cee2b320f934f828afd76914a0185ec15165 Mon Sep 17 00:00:00 2001 From: aeminenok Date: Thu, 27 Feb 2025 13:38:25 +0300 Subject: [PATCH] non-nullable null is deprecated --- src/Collections/ProfilingCollection.php | 4 ++-- src/Support/helpers.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Collections/ProfilingCollection.php b/src/Collections/ProfilingCollection.php index da65a40..9b4637d 100644 --- a/src/Collections/ProfilingCollection.php +++ b/src/Collections/ProfilingCollection.php @@ -80,9 +80,9 @@ public function listen() * Start timer. * * @param string $name - * @param null $time + * @param float|null $time */ - protected function start($name, $time = null) + protected function start(string $name, ?float $time = null) { $this->started[$name] = $time ?: microtime(true); } diff --git a/src/Support/helpers.php b/src/Support/helpers.php index b3c9d79..600b5d2 100644 --- a/src/Support/helpers.php +++ b/src/Support/helpers.php @@ -49,7 +49,7 @@ function lad_pr_stop($name) * @param Closure|null $action * @return mixed */ - function lad_pr_me($name, \Closure $action = null) + function lad_pr_me($name, ?\Closure $action = null) { return app(Debugger::class)->profileMe($name, $action); }