From d0e5405be340cf975355caa2e9b2a31f7342fa0c Mon Sep 17 00:00:00 2001 From: "Phil E. Taylor" Date: Mon, 2 Dec 2024 13:10:28 +0000 Subject: [PATCH] Implicitly marking parameter $memory as nullable is deprecated --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 4520c25..7d642b4 100644 --- a/src/Client.php +++ b/src/Client.php @@ -195,7 +195,7 @@ public function endMemoryProfile(string $key, float $sampleRate = 1.0, array $ta * @param float $sampleRate * @param array $tags */ - public function memory(string $key, int $memory = null, float $sampleRate = 1.0, array $tags = []): void + public function memory(string $key, ?int $memory = null, float $sampleRate = 1.0, array $tags = []): void { if ($memory === null) { $memory = memory_get_peak_usage();