diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/JWT.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/JWT.php b/src/JWT.php index 7729143..814afc0 100644 --- a/src/JWT.php +++ b/src/JWT.php @@ -352,8 +352,10 @@ class JWT { $messages = array( JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', + JSON_ERROR_STATE_MISMATCH => 'Invalid or malformed JSON', JSON_ERROR_CTRL_CHAR => 'Unexpected control character found', - JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON' + JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON', + JSON_ERROR_UTF8 => 'Malformed UTF-8 characters' //PHP >= 5.3.3 ); throw new DomainException( isset($messages[$errno]) |