@@ -5404,7 +5404,7 @@ private function processAssignVar(
5404
5404
$ conditionalExpressions = $ this ->processSureTypesForConditionalExpressionsAfterAssign ($ scope , $ var ->name , $ conditionalExpressions , $ falseySpecifiedTypes , $ falseyType );
5405
5405
$ conditionalExpressions = $ this ->processSureNotTypesForConditionalExpressionsAfterAssign ($ scope , $ var ->name , $ conditionalExpressions , $ falseySpecifiedTypes , $ falseyType );
5406
5406
5407
- $ nodeCallback (new VariableAssignNode ($ var , $ assignedExpr, $ isAssignOp ), $ result ->getScope ());
5407
+ $ nodeCallback (new VariableAssignNode ($ var , $ assignedExpr ), $ result ->getScope ());
5408
5408
$ scope = $ scope ->assignVariable ($ var ->name , $ type , $ scope ->getNativeType ($ assignedExpr ), TrinaryLogic::createYes ());
5409
5409
foreach ($ conditionalExpressions as $ exprString => $ holders ) {
5410
5410
$ scope = $ scope ->addConditionalExpressions ($ exprString , $ holders );
@@ -5542,7 +5542,7 @@ private function processAssignVar(
5542
5542
5543
5543
if ($ varType ->isArray ()->yes () || !(new ObjectType (ArrayAccess::class))->isSuperTypeOf ($ varType )->yes ()) {
5544
5544
if ($ var instanceof Variable && is_string ($ var ->name )) {
5545
- $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr, $ isAssignOp ), $ scope );
5545
+ $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr ), $ scope );
5546
5546
$ scope = $ scope ->assignVariable ($ var ->name , $ valueToWrite , $ nativeValueToWrite , TrinaryLogic::createYes ());
5547
5547
} else {
5548
5548
if ($ var instanceof PropertyFetch || $ var instanceof StaticPropertyFetch) {
@@ -5574,7 +5574,7 @@ private function processAssignVar(
5574
5574
}
5575
5575
} else {
5576
5576
if ($ var instanceof Variable) {
5577
- $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr, $ isAssignOp ), $ scope );
5577
+ $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr ), $ scope );
5578
5578
} elseif ($ var instanceof PropertyFetch || $ var instanceof StaticPropertyFetch) {
5579
5579
$ nodeCallback (new PropertyAssignNode ($ var , $ assignedPropertyExpr , $ isAssignOp ), $ scope );
5580
5580
if ($ var instanceof PropertyFetch && $ var ->name instanceof Node \Identifier && !$ isAssignOp ) {
@@ -5861,7 +5861,7 @@ static function (): void {
5861
5861
}
5862
5862
5863
5863
if ($ var instanceof Variable && is_string ($ var ->name )) {
5864
- $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr, $ isAssignOp ), $ scope );
5864
+ $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr ), $ scope );
5865
5865
$ scope = $ scope ->assignVariable ($ var ->name , $ valueToWrite , $ nativeValueToWrite , TrinaryLogic::createYes ());
5866
5866
} else {
5867
5867
if ($ var instanceof PropertyFetch || $ var instanceof StaticPropertyFetch) {
0 commit comments