From 0318c90e76b7cf010d2616b2a521d157ee2742ff Mon Sep 17 00:00:00 2001 From: Andres Berdugo Date: Fri, 8 Apr 2022 10:50:55 -0500 Subject: [PATCH] Add missing doc block for $alg in JWT::encode() --- src/JWT.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/JWT.php b/src/JWT.php index 843d0ae0..bf064e34 100644 --- a/src/JWT.php +++ b/src/JWT.php @@ -167,6 +167,8 @@ public static function decode( * * @param array $payload PHP array * @param string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate $key The secret key. + * @param string $alg Supported algorithms are 'ES384','ES256', 'HS256', 'HS384', + * 'HS512', 'RS256', 'RS384', and 'RS512' * @param string $keyId * @param array $head An array with header elements to attach *