Skip to content

Commit 65ddbcb

Browse files
committed
Fix after merge
1 parent b80f208 commit 65ddbcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Analyser/TypeSpecifier.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@ public function resolveEqual(Expr\BinaryOp\Equal $expr, Scope $scope, TypeSpecif
19031903
new ConstantStringType(''),
19041904
new ConstantArrayType([], []),
19051905
];
1906-
return $this->create($exprNode, new UnionType($trueTypes), $context, false, $scope, $rootExpr);
1906+
return $this->create($exprNode, new UnionType($trueTypes), $context, $scope)->setRootExpr($expr);
19071907
}
19081908

19091909
if (!$context->null() && $constantType->getValue() === false) {
@@ -1943,7 +1943,7 @@ public function resolveEqual(Expr\BinaryOp\Equal $expr, Scope $scope, TypeSpecif
19431943
new ConstantStringType('0'),
19441944
];
19451945
}
1946-
return $this->create($exprNode, new UnionType($trueTypes), $context, false, $scope, $rootExpr);
1946+
return $this->create($exprNode, new UnionType($trueTypes), $context, $scope)->setRootExpr($expr);
19471947
}
19481948

19491949
if (!$context->null() && $constantType->getValue() === '') {
@@ -1965,7 +1965,7 @@ public function resolveEqual(Expr\BinaryOp\Equal $expr, Scope $scope, TypeSpecif
19651965
new ConstantStringType(''),
19661966
];
19671967
}
1968-
return $this->create($exprNode, new UnionType($trueTypes), $context, false, $scope, $rootExpr);
1968+
return $this->create($exprNode, new UnionType($trueTypes), $context, $scope)->setRootExpr($expr);
19691969
}
19701970

19711971
if (

0 commit comments

Comments
 (0)