1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00
This commit is contained in:
Daniil Gentili 2022-11-24 11:28:00 +01:00
parent 7869cb548a
commit 85071b61a3

View File

@ -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,