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 0859719 commit 019f21aCopy full SHA for 019f21a
src/Tokenizers/PHP.php
@@ -899,7 +899,8 @@ protected function tokenize($string)
899
*/
900
901
if ($tokenIsArray === true
902
- && preg_match('`^[a-zA-Z_\x80-\xff]`', $token[1]) === 1
+ && ($token[0] === T_STRING
903
+ || preg_match('`^[a-zA-Z_\x80-\xff]`', $token[1]) === 1)
904
) {
905
// Get the next non-empty token.
906
for ($i = ($stackPtr + 1); $i < $numTokens; $i++) {
0 commit comments