diff --git a/src/Psalm/Checker/StatementsChecker.php b/src/Psalm/Checker/StatementsChecker.php index 64e90af9e..58610be2f 100644 --- a/src/Psalm/Checker/StatementsChecker.php +++ b/src/Psalm/Checker/StatementsChecker.php @@ -1314,6 +1314,9 @@ class StatementsChecker } } + $context->vars_in_scope[$var_id] = Type::getMixed(); + $stmt->inferredType = Type::getMixed(); + return; }