Skip to content

Commit

Permalink
Merge pull request #17 from magnetik/patch-1
Browse files Browse the repository at this point in the history
Document that decode can throw a JWTException
  • Loading branch information
adhocore authored Feb 1, 2020
2 parents 5dfe8ed + c3e1973 commit bdb060c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/JWT.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ public function encode(array $payload, array $header = []): string
*
* @param string $token
*
* @throws JWTException
*
* @return array
*/
public function decode(string $token): array
Expand Down

0 comments on commit bdb060c

Please sign in to comment.