Skip to content

Commit eae50a3

Browse files
committed
Fix typo in "Unexpected token" error
1 parent d6f0bda commit eae50a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GrammarProcessing/LexicalGrammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private function throwUnexpectedTokenException(
154154
{
155155
throw new UnexpectedTokenException(
156156
sprintf(
157-
"Unxpected token '%s'",
157+
"Unexpected token '%s'",
158158
strlen($value) > 12
159159
? substr($value, 0, 10) . '... (truncated)'
160160
: $value,

tests/cases/LexicalGrammar.cases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@
9090
'Base' => new Vojtechdobes\GrammarProcessing\Vocabulary\Regexp('a'),
9191
],
9292
'ab',
93-
"Unxpected token 'b' (line 1, col 2)",
93+
"Unexpected token 'b' (line 1, col 2)",
9494
],
9595
];

0 commit comments

Comments
 (0)