Skip to content

Commit

Permalink
Implicitly marking parameter $memory as nullable is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilETaylor authored Dec 2, 2024
1 parent 96b8a5e commit d0e5405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d0e5405

Please sign in to comment.