Skip to content

Commit

Permalink
Carbon v3 (#299)
Browse files Browse the repository at this point in the history
* Carbon v3

* wip

* Fix type

---------

Co-authored-by: Tim MacDonald <[email protected]>
  • Loading branch information
driesvints and timacdonald authored Feb 1, 2024
1 parent 303fe30 commit 801ec40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Recorders/SlowRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 801ec40

Please sign in to comment.