diff --git a/src/Tokenizers/PHP.php b/src/Tokenizers/PHP.php index cb58661455..44ede64607 100644 --- a/src/Tokenizers/PHP.php +++ b/src/Tokenizers/PHP.php @@ -1193,7 +1193,7 @@ protected function tokenize($string) if ($tokenIsArray === true && ($token[0] === T_STRING - || preg_match('`^[a-zA-Z_\x80-\xff]`', $token[1]) === 1) + || preg_match(self::PHP_LABEL_REGEX, $token[1]) === 1) ) { // Get the next non-empty token. for ($i = ($stackPtr + 1); $i < $numTokens; $i++) {