Skip to content

Commit

Permalink
Fix 1 !== "1" strict comp mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed May 14, 2024
1 parent ba5f72f commit e37d370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/X509/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit e37d370

Please sign in to comment.