mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Fix #8748
This commit is contained in:
parent
7869cb548a
commit
85071b61a3
@ -158,7 +158,7 @@ class MethodCallPurityAnalyzer
|
||||
&& !isset($class_storage->declaring_property_ids[$name]);
|
||||
|
||||
if ($this_property_didnt_exist) {
|
||||
$context->vars_in_scope[$mutation_var_id] = Type::getMixed();
|
||||
unset($context->vars_in_scope[$mutation_var_id]);
|
||||
} else {
|
||||
$new_type = AssignmentAnalyzer::getExpandedPropertyType(
|
||||
$codebase,
|
||||
|
Loading…
x
Reference in New Issue
Block a user