Mercurial > hg > isophonics-drupal-site
diff vendor/nikic/php-parser/lib/PhpParser/Lexer.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 5fb285c0d0e3 |
line wrap: on
line diff
--- a/vendor/nikic/php-parser/lib/PhpParser/Lexer.php Fri Feb 23 15:51:18 2018 +0000 +++ b/vendor/nikic/php-parser/lib/PhpParser/Lexer.php Fri Feb 23 15:52:07 2018 +0000 @@ -360,7 +360,7 @@ if ('T_HASHBANG' === $name) { // HHVM uses a special token for #! hashbang lines $tokenMap[$i] = Tokens::T_INLINE_HTML; - } else if (defined($name = 'PhpParser\Parser\Tokens::' . $name)) { + } else if (defined($name = Tokens::class . '::' . $name)) { // Other tokens can be mapped directly $tokenMap[$i] = constant($name); }