There was an error while loading. Please reload this page.
2 parents 489eae4 + b80e879 commit b8c4907Copy full SHA for b8c4907
src/Tokenizers/PHP.php
@@ -1441,7 +1441,7 @@ protected function tokenize($string)
1441
1442
if ($tokenIsArray === true
1443
&& ($token[0] === T_STRING
1444
- || preg_match('`^[a-zA-Z_\x80-\xff]`', $token[1]) === 1)
+ || preg_match(self::PHP_LABEL_REGEX, $token[1]) === 1)
1445
) {
1446
// Get the next non-empty token.
1447
for ($i = ($stackPtr + 1); $i < $numTokens; $i++) {
0 commit comments