From f5c8d22a457ac79aa30dfbb456e7d96a4ff6c1aa Mon Sep 17 00:00:00 2001 From: Lloric Mayuga Garcia Date: Mon, 25 Mar 2024 10:10:35 +0800 Subject: [PATCH] Fix test regarding carbon v3 Signed-off-by: Lloric Mayuga Garcia --- src/SslCertificate.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/SslCertificate.php b/src/SslCertificate.php index d41fb84..9679660 100644 --- a/src/SslCertificate.php +++ b/src/SslCertificate.php @@ -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