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 7027990 commit 7715041Copy full SHA for 7715041
src/Tokenizers/PHP.php
@@ -1193,7 +1193,7 @@ protected function tokenize($string)
1193
1194
if ($tokenIsArray === true
1195
&& ($token[0] === T_STRING
1196
- || preg_match('`^[a-zA-Z_\x80-\xff]`', $token[1]) === 1)
+ || preg_match(self::PHP_LABEL_REGEX, $token[1]) === 1)
1197
) {
1198
// Get the next non-empty token.
1199
for ($i = ($stackPtr + 1); $i < $numTokens; $i++) {
0 commit comments