From 212edcd16b44cba1e738884726462600e3683f9e Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Tue, 23 Aug 2016 23:51:01 -0400 Subject: [PATCH] Only warn about undefined this vars once --- src/Psalm/Checker/StatementsChecker.php | 3 +++ 1 file changed, 3 insertions(+) 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; }