From 303342630d78dcfaa3d715077c73761e1a98192a Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 1 Aug 2020 22:36:49 +0200 Subject: [PATCH] Fix a token reference --- lib/PhpParser/Lexer/TokenEmulator/CoaleseEqualTokenEmulator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PhpParser/Lexer/TokenEmulator/CoaleseEqualTokenEmulator.php b/lib/PhpParser/Lexer/TokenEmulator/CoaleseEqualTokenEmulator.php index 5e00e80..a1be8f2 100644 --- a/lib/PhpParser/Lexer/TokenEmulator/CoaleseEqualTokenEmulator.php +++ b/lib/PhpParser/Lexer/TokenEmulator/CoaleseEqualTokenEmulator.php @@ -25,7 +25,7 @@ final class CoaleseEqualTokenEmulator implements TokenEmulatorInterface if (isset($tokens[$i + 1])) { if ($tokens[$i][0] === T_COALESCE && $tokens[$i + 1] === '=') { array_splice($tokens, $i, 2, [ - [Emulative::T_COALESCE_EQUAL, '??=', $line] + [\T_COALESCE_EQUAL, '??=', $line] ]); $c--; continue;