mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-03 09:47:59 +01:00
Fix a token reference
This commit is contained in:
parent
1a1300aa2a
commit
303342630d
@ -25,7 +25,7 @@ final class CoaleseEqualTokenEmulator implements TokenEmulatorInterface
|
|||||||
if (isset($tokens[$i + 1])) {
|
if (isset($tokens[$i + 1])) {
|
||||||
if ($tokens[$i][0] === T_COALESCE && $tokens[$i + 1] === '=') {
|
if ($tokens[$i][0] === T_COALESCE && $tokens[$i + 1] === '=') {
|
||||||
array_splice($tokens, $i, 2, [
|
array_splice($tokens, $i, 2, [
|
||||||
[Emulative::T_COALESCE_EQUAL, '??=', $line]
|
[\T_COALESCE_EQUAL, '??=', $line]
|
||||||
]);
|
]);
|
||||||
$c--;
|
$c--;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user