Skip to content

Commit 801ec40

Browse files
Carbon v3 (#299)
* Carbon v3 * wip * Fix type --------- Co-authored-by: Tim MacDonald <[email protected]>
1 parent 303fe30 commit 801ec40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"illuminate/support": "^10.34|^11.0",
3333
"illuminate/view": "^10.34|^11.0",
3434
"livewire/livewire": "^3.2",
35-
"nesbot/carbon": "^2.67"
35+
"nesbot/carbon": "^2.67|^3.0"
3636
},
3737
"require-dev": {
3838
"guzzlehttp/guzzle": "^7.7",

src/Recorders/SlowRequests.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function record(Carbon $startedAt, Request $request, Response $response):
5252
{
5353
if (
5454
! $request->route() instanceof Route ||
55-
$this->underThreshold($duration = $startedAt->diffInMilliseconds()) ||
55+
$this->underThreshold($duration = ((int) $startedAt->diffInMilliseconds())) ||
5656
! $this->shouldSample()
5757
) {
5858
return;

0 commit comments

Comments
 (0)