From e37d370b1f0ead124ce012996a7d1d10fcaf50af Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Tue, 14 May 2024 16:34:21 +0200 Subject: [PATCH] Fix `1 !== "1"` strict comp mismatch --- library/X509/Job.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/X509/Job.php b/library/X509/Job.php index 1e0b3f73..e800a8ee 100644 --- a/library/X509/Job.php +++ b/library/X509/Job.php @@ -723,7 +723,7 @@ protected function processChain($target, $chain) ->filter(Filter::equal('self_signed', true)) ->first(); - if ($rootCa && $rootCa->id !== $lastCertInfo[0]) { + if ($rootCa && $rootCa->id !== (int) $lastCertInfo[0]) { $this->db->update( 'x509_certificate_chain', ['length' => count($chain) + 1],