Skip to content

Commit

Permalink
Ignore deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
renekorss committed Mar 28, 2023
1 parent a5c1775 commit f949a91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Protocol/ECommerce.php
Expand Up @@ -374,7 +374,7 @@ protected function validateSignature(array $response, string $encoding = 'UTF-8'

// Only needed if < PHP 8
if (version_compare(PHP_VERSION, '8.0.0', '<')) {
openssl_free_key($publicKey);
openssl_free_key($publicKey); // @codeCoverageIgnore
}

return $this->result === 1;
Expand Down
2 changes: 1 addition & 1 deletion src/Protocol/IPizza.php
Expand Up @@ -448,7 +448,7 @@ public function getSignature(array $data, string $encoding = 'UTF-8') : string

// Only needed if < PHP 8
if (version_compare(PHP_VERSION, '8.0.0', '<')) {
openssl_free_key($privateKey);
openssl_free_key($privateKey); // @codeCoverageIgnore
}

$result = base64_encode($signature);
Expand Down

0 comments on commit f949a91

Please sign in to comment.