From f91870bcc46cd26dfd06b69746ae436a77b8cbc0 Mon Sep 17 00:00:00 2001 From: Gerson Felipe Schwinn Date: Mon, 1 Jul 2024 18:14:00 -0300 Subject: [PATCH 1/2] Corrigindo testes automatizados --- .github/workflows/ci.yml | 2 +- src/Signer.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2444c6f..3113d63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: extensions: mbstring, intl, mysql, zlib, dom, openssl, soap, json, simplexml, libxml - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Composer Install run: | diff --git a/src/Signer.php b/src/Signer.php index d6b4e44..e285c5a 100755 --- a/src/Signer.php +++ b/src/Signer.php @@ -32,7 +32,7 @@ class Signer { - const CANONICAL = [true,false,null,null]; + const CANONICAL = [true, false, null, null]; /** * Make Signature tag @@ -286,6 +286,7 @@ public static function digestCheck($xml, $tagname = '', $canonical = self::CANON } else { $xpath = new \DOMXPath($dom); $entries = $xpath->query('//@Id'); + /** @var \DOMAttr $entry */ foreach ($entries as $entry) { $tagname = $entry->ownerElement->nodeName; break; From ba27df7f8a15bb12b2a71d469759c038eb10afe9 Mon Sep 17 00:00:00 2001 From: Gerson Felipe Schwinn Date: Mon, 1 Jul 2024 18:14:36 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Desfazendo=20altera=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Signer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Signer.php b/src/Signer.php index e285c5a..4cb5dc1 100755 --- a/src/Signer.php +++ b/src/Signer.php @@ -32,7 +32,7 @@ class Signer { - const CANONICAL = [true, false, null, null]; + const CANONICAL = [true,false,null,null]; /** * Make Signature tag