@@ -5404,7 +5404,7 @@ private function processAssignVar(
54045404 $ conditionalExpressions = $ this ->processSureTypesForConditionalExpressionsAfterAssign ($ scope , $ var ->name , $ conditionalExpressions , $ falseySpecifiedTypes , $ falseyType );
54055405 $ conditionalExpressions = $ this ->processSureNotTypesForConditionalExpressionsAfterAssign ($ scope , $ var ->name , $ conditionalExpressions , $ falseySpecifiedTypes , $ falseyType );
54065406
5407- $ nodeCallback (new VariableAssignNode ($ var , $ assignedExpr, $ isAssignOp ), $ result ->getScope ());
5407+ $ nodeCallback (new VariableAssignNode ($ var , $ assignedExpr ), $ result ->getScope ());
54085408 $ scope = $ scope ->assignVariable ($ var ->name , $ type , $ scope ->getNativeType ($ assignedExpr ), TrinaryLogic::createYes ());
54095409 foreach ($ conditionalExpressions as $ exprString => $ holders ) {
54105410 $ scope = $ scope ->addConditionalExpressions ($ exprString , $ holders );
@@ -5542,7 +5542,7 @@ private function processAssignVar(
55425542
55435543 if ($ varType ->isArray ()->yes () || !(new ObjectType (ArrayAccess::class))->isSuperTypeOf ($ varType )->yes ()) {
55445544 if ($ var instanceof Variable && is_string ($ var ->name )) {
5545- $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr, $ isAssignOp ), $ scope );
5545+ $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr ), $ scope );
55465546 $ scope = $ scope ->assignVariable ($ var ->name , $ valueToWrite , $ nativeValueToWrite , TrinaryLogic::createYes ());
55475547 } else {
55485548 if ($ var instanceof PropertyFetch || $ var instanceof StaticPropertyFetch) {
@@ -5574,7 +5574,7 @@ private function processAssignVar(
55745574 }
55755575 } else {
55765576 if ($ var instanceof Variable) {
5577- $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr, $ isAssignOp ), $ scope );
5577+ $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr ), $ scope );
55785578 } elseif ($ var instanceof PropertyFetch || $ var instanceof StaticPropertyFetch) {
55795579 $ nodeCallback (new PropertyAssignNode ($ var , $ assignedPropertyExpr , $ isAssignOp ), $ scope );
55805580 if ($ var instanceof PropertyFetch && $ var ->name instanceof Node \Identifier && !$ isAssignOp ) {
@@ -5861,7 +5861,7 @@ static function (): void {
58615861 }
58625862
58635863 if ($ var instanceof Variable && is_string ($ var ->name )) {
5864- $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr, $ isAssignOp ), $ scope );
5864+ $ nodeCallback (new VariableAssignNode ($ var , $ assignedPropertyExpr ), $ scope );
58655865 $ scope = $ scope ->assignVariable ($ var ->name , $ valueToWrite , $ nativeValueToWrite , TrinaryLogic::createYes ());
58665866 } else {
58675867 if ($ var instanceof PropertyFetch || $ var instanceof StaticPropertyFetch) {
0 commit comments