From a75f71d8f2f75a1d4ec23bf41879f47b600b79c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20J=C3=B8rgensen?= Date: Thu, 9 Jun 2022 19:28:57 +0200 Subject: [PATCH 1/2] Update phpdoc for parseKey The return value for https://www.php.net/manual/en/function.openssl-pkey-get-public.php has changed in PHP 8. --- src/JWK.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/JWK.php b/src/JWK.php index 8eecb73f..a5179144 100644 --- a/src/JWK.php +++ b/src/JWK.php @@ -62,7 +62,7 @@ public static function parseKeySet($source) /** * Parse a JWK key * @param $source - * @return resource|array an associative array represents the key + * @return OpenSSLAsymmetricKey|resource an associative array represents the key */ public static function parseKey($source) { @@ -155,4 +155,4 @@ private static function encodeLength($length) return pack('Ca*', 0x80 | strlen($temp), $temp); } -} \ No newline at end of file +} From 1f2229f08b7d61d7ae95ca0ef4b2e05e958752bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20J=C3=B8rgensen?= Date: Thu, 9 Jun 2022 19:42:22 +0200 Subject: [PATCH 2/2] Update phpdoc for parseKey --- src/JWK.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JWK.php b/src/JWK.php index a5179144..7a97f604 100644 --- a/src/JWK.php +++ b/src/JWK.php @@ -62,7 +62,7 @@ public static function parseKeySet($source) /** * Parse a JWK key * @param $source - * @return OpenSSLAsymmetricKey|resource an associative array represents the key + * @return OpenSSLAsymmetricKey|resource The public key */ public static function parseKey($source) {