From d99ab404a14a6169d0e3961a941e67e0bc3f3cea Mon Sep 17 00:00:00 2001 From: Arjan Keeman Date: Wed, 30 Dec 2015 22:08:26 +0100 Subject: [PATCH] Remove null as possible key value in docblock The docblock states that null is a possible value for $key, however, it clearly results in an exception. --- src/JWT.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/JWT.php b/src/JWT.php index b3532df7..955351b5 100644 --- a/src/JWT.php +++ b/src/JWT.php @@ -39,11 +39,11 @@ class JWT /** * Decodes a JWT string into a PHP object. * - * @param string $jwt The JWT - * @param string|array|null $key The key, or map of keys. - * If the algorithm used is asymmetric, this is the public key - * @param array $allowed_algs List of supported verification algorithms - * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' + * @param string $jwt The JWT + * @param string|array $key The key, or map of keys. + * If the algorithm used is asymmetric, this is the public key + * @param array $allowed_algs List of supported verification algorithms + * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' * * @return object The JWT's payload as a PHP object *