Skip to content

Commit

Permalink
Fix #8748
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Nov 24, 2022
1 parent 7869cb5 commit 85071b6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -158,7 +158,7 @@ public static function analyze(
&& !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,
Expand Down

0 comments on commit 85071b6

Please sign in to comment.