Only set byRegToken on AssignmentExpression
This commit is contained in:
Родитель
2932721cb2
Коммит
0ab36a5f67
|
@ -1886,7 +1886,7 @@ class Parser {
|
||||||
$rightOperand->parent = $binaryExpression;
|
$rightOperand->parent = $binaryExpression;
|
||||||
$binaryExpression->leftOperand = $leftOperand;
|
$binaryExpression->leftOperand = $leftOperand;
|
||||||
$binaryExpression->operator = $operatorToken;
|
$binaryExpression->operator = $operatorToken;
|
||||||
if (isset($byRefToken)) {
|
if ($binaryExpression instanceof AssignmentExpression && isset($byRefToken)) {
|
||||||
$binaryExpression->byRef = $byRefToken;
|
$binaryExpression->byRef = $byRefToken;
|
||||||
}
|
}
|
||||||
$binaryExpression->rightOperand = $rightOperand;
|
$binaryExpression->rightOperand = $rightOperand;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче