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 3935729 commit 2c06f96Copy full SHA for 2c06f96
src/Tokenizers/PHP.php
@@ -888,7 +888,7 @@ protected function tokenize($string)
888
889
if ($tokenIsArray === true
890
&& ($token[0] === T_STRING
891
- || preg_match('`^[a-zA-Z_\x80-\xff]`', $token[1]) === 1)
+ || preg_match(self::PHP_LABEL_REGEX, $token[1]) === 1)
892
) {
893
// Get the next non-empty token.
894
for ($i = ($stackPtr + 1); $i < $numTokens; $i++) {
0 commit comments