Skip to content

Commit

Permalink
Fix openssl error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Feb 1, 2024
1 parent 3b01852 commit 2b9ae6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Library/KeyManagement/KeyConverter/KeyConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public static function loadKeyFromCertificate(string $certificate): array
throw new RuntimeException('Please install the OpenSSL extension');
}

$errorReporting = error_reporting(E_ERROR | E_PARSE);
try {
$errorReporting = error_reporting(E_ERROR | E_PARSE);
$res = openssl_x509_read($certificate);
if ($res === false) {
throw new InvalidArgumentException('Unable to load the certificate.');
Expand Down

0 comments on commit 2b9ae6d

Please sign in to comment.