diff --git a/composer.json b/composer.json index ced0b921..a975a857 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "illuminate/support": "^10.34|^11.0", "illuminate/view": "^10.34|^11.0", "livewire/livewire": "^3.2", - "nesbot/carbon": "^2.67" + "nesbot/carbon": "^2.67|^3.0" }, "require-dev": { "guzzlehttp/guzzle": "^7.7", diff --git a/src/Recorders/SlowRequests.php b/src/Recorders/SlowRequests.php index 359b874b..44cbbad6 100644 --- a/src/Recorders/SlowRequests.php +++ b/src/Recorders/SlowRequests.php @@ -52,7 +52,7 @@ public function record(Carbon $startedAt, Request $request, Response $response): { if ( ! $request->route() instanceof Route || - $this->underThreshold($duration = $startedAt->diffInMilliseconds()) || + $this->underThreshold($duration = ((int) $startedAt->diffInMilliseconds())) || ! $this->shouldSample() ) { return;