Skip to content

Commit

Permalink
Fix test regarding carbon v3
Browse files Browse the repository at this point in the history
Signed-off-by: Lloric Mayuga Garcia <[email protected]>
  • Loading branch information
lloricode committed Mar 25, 2024
1 parent 3c7d13b commit f5c8d22
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/SslCertificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,7 @@ public function daysUntilExpirationDate(): int
{
$endDate = $this->expirationDate();

$interval = Carbon::now()->diff($endDate);

return (int) $interval->format('%r%a');
return (int) Carbon::now()->diffInDays($endDate);
}

public function getDomains(): array
Expand Down

0 comments on commit f5c8d22

Please sign in to comment.