We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2c50fd commit b2a5316Copy full SHA for b2a5316
src/JWT.php
@@ -352,8 +352,10 @@ private static function handleJsonError($errno)
352
{
353
$messages = array(
354
JSON_ERROR_DEPTH => 'Maximum stack depth exceeded',
355
+ JSON_ERROR_STATE_MISMATCH => 'Invalid or malformed JSON',
356
JSON_ERROR_CTRL_CHAR => 'Unexpected control character found',
- JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON'
357
+ JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON',
358
+ JSON_ERROR_UTF8 => 'Malformed UTF-8 characters' //PHP >= 5.3.3
359
);
360
throw new DomainException(
361
isset($messages[$errno])
0 commit comments