Skip to content

Commit 0d142ab

Browse files
committed
try one more fix
1 parent 44b2031 commit 0d142ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Analyser/NodeScopeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6627,7 +6627,7 @@ private function processAssignVar(
66276627
}
66286628

66296629
if ($var instanceof Variable && is_string($var->name)) {
6630-
$this->callNodeCallback($nodeCallback, new VariableAssignNode($var, $assignedPropertyExpr), $scope, $storage);
6630+
$this->callNodeCallback($nodeCallback, new VariableAssignNode($var, new TypeExpr($valueToWrite)), $scope, $storage);
66316631
$scope = $scope->assignVariable($var->name, $valueToWrite, $nativeValueToWrite, TrinaryLogic::createYes());
66326632
} else {
66336633
if ($var instanceof PropertyFetch || $var instanceof StaticPropertyFetch) {

0 commit comments

Comments
 (0)