From 69194142bf7e0d3b797341b3691dbbb9f629f230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miguel=20Moreno?= Date: Sun, 12 Nov 2023 13:59:12 +0100 Subject: [PATCH] =?UTF-8?q?A=C3=B1adida=20correcci=C3=B3n=20de=20atributos?= =?UTF-8?q?=20OID=20al=20firmar=20(II)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Actualizada clase FacturaeSigner para aƱadir compatibilidad con PHP 5.6 > Related to #143 --- src/Common/FacturaeSigner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/FacturaeSigner.php b/src/Common/FacturaeSigner.php index b97ca04..9b69cde 100644 --- a/src/Common/FacturaeSigner.php +++ b/src/Common/FacturaeSigner.php @@ -176,7 +176,7 @@ public function sign($xml) { $certData = openssl_x509_parse($this->publicChain[0]); $certIssuer = []; foreach ($certData['issuer'] as $item=>$rawValues) { - if (!isset(self::ALLOWED_OID_TYPES[$item])) { + if (!array_key_exists($item, self::ALLOWED_OID_TYPES)) { continue; } $item = self::ALLOWED_OID_TYPES[$item];