Skip to content

Commit

Permalink
Fix for carbon v3 with spatie/ssl-certificate v2.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lloricode authored Mar 25, 2024
1 parent 1290986 commit 8f3c4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SslCertificationExpiredCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function run(): Result
}

$certificate = SslCertificate::createForHostName($this->url, 30, false);
$daysUntilExpired = Carbon::now()->diffInDays($certificate->expirationDate(), false);
$daysUntilExpired = $certificate->daysUntilExpirationDate();

$result = Result::make()
->meta(['days_until_expired' => $daysUntilExpired])
Expand Down

0 comments on commit 8f3c4a3

Please sign in to comment.