We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 201d55d commit b9973cdCopy full SHA for b9973cd
src/Encryption.php
@@ -313,7 +313,9 @@ private static function createLocalKeyObjectUsingOpenSSL(): array
313
}
314
315
$details = openssl_pkey_get_details($keyResource);
316
- openssl_pkey_free($keyResource);
+ if (PHP_MAJOR_VERSION < 8) {
317
+ openssl_pkey_free($keyResource);
318
+ }
319
320
if (!$details) {
321
throw new \RuntimeException('Unable to get the key details');
0 commit comments