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 485ff63 commit 17c0933Copy full SHA for 17c0933
src/Tokenizers/PHP.php
@@ -1162,7 +1162,7 @@ protected function tokenize($string)
1162
1163
if ($tokenIsArray === true
1164
&& ($token[0] === T_STRING
1165
- || preg_match('`^[a-zA-Z_\x80-\xff]`', $token[1]) === 1)
+ || preg_match(self::PHP_LABEL_REGEX, $token[1]) === 1)
1166
) {
1167
// Get the next non-empty token.
1168
for ($i = ($stackPtr + 1); $i < $numTokens; $i++) {
0 commit comments