Skip to content

Commit 12ec2fe

Browse files
authored
chore(docs): add throws DomainException for JWT::decode (#379)
1 parent 83b6090 commit 12ec2fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JWT.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ class JWT
7070
*
7171
* @return object The JWT's payload as a PHP object
7272
*
73-
* @throws InvalidArgumentException Provided JWT was empty
73+
* @throws InvalidArgumentException Provided key/key-array was empty
74+
* @throws DomainException Provided JWT is malformed
7475
* @throws UnexpectedValueException Provided JWT was invalid
7576
* @throws SignatureInvalidException Provided JWT was invalid because the signature verification failed
7677
* @throws BeforeValidException Provided JWT is trying to be used before it's eligible as defined by 'nbf'

0 commit comments

Comments
 (0)