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 70f27a2 commit c7f7f7bCopy full SHA for c7f7f7b
src/Parser/ParserException.php
@@ -32,8 +32,8 @@ public function __construct(
32
$this->expectedTokenType = $expectedTokenType;
33
34
parent::__construct(sprintf(
35
- 'Unexpected token \'%s\', expected %s at offset %d',
36
- $currentTokenValue,
+ 'Unexpected token %s, expected %s at offset %d',
+ json_encode($currentTokenValue, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
37
Lexer::TOKEN_LABELS[$expectedTokenType],
38
$currentOffset
39
));
0 commit comments