Skip to content

Commit

Permalink
Añadida corrección de atributos OID al firmar (II)
Browse files Browse the repository at this point in the history
- Actualizada clase FacturaeSigner para añadir compatibilidad con PHP 5.6

> Related to #143
  • Loading branch information
josemmo committed Nov 12, 2023
1 parent 96c5b83 commit 6919414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/FacturaeSigner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 6919414

Please # to comment.