From 12ec2fe16082a510b98e301cab07bbbcc5daea33 Mon Sep 17 00:00:00 2001 From: Andrej Rypo Date: Wed, 1 Dec 2021 23:04:08 +0100 Subject: [PATCH] chore(docs): add throws DomainException for JWT::decode (#379) --- src/JWT.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/JWT.php b/src/JWT.php index ec1641bc..b2e78041 100644 --- a/src/JWT.php +++ b/src/JWT.php @@ -70,7 +70,8 @@ class JWT * * @return object The JWT's payload as a PHP object * - * @throws InvalidArgumentException Provided JWT was empty + * @throws InvalidArgumentException Provided key/key-array was empty + * @throws DomainException Provided JWT is malformed * @throws UnexpectedValueException Provided JWT was invalid * @throws SignatureInvalidException Provided JWT was invalid because the signature verification failed * @throws BeforeValidException Provided JWT is trying to be used before it's eligible as defined by 'nbf'