Skip to content

Commit 098555b

Browse files
committed
try one more fix
1 parent 0d35b42 commit 098555b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)