From 87e2300b65b8498a67e2f6b959013ae0e9ea7fb3 Mon Sep 17 00:00:00 2001 From: Brown Date: Fri, 28 Jun 2019 11:22:52 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20stop=20analysing=20after=20clas?= =?UTF-8?q?s=5Fexists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Statements/Expression/Call/FunctionCallAnalyzer.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php index 63576b23a..ddb06e7bd 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php @@ -645,8 +645,6 @@ class FunctionCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expressio if (!$codebase->classlikes->classExists($resolved_name)) { $context->phantom_classes[strtolower($resolved_name)] = true; - } elseif ($context->inside_negation) { - return false; } } } @@ -663,8 +661,6 @@ class FunctionCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expressio if (!$codebase->classlikes->interfaceExists($resolved_name)) { $context->phantom_classes[strtolower($resolved_name)] = true; - } elseif ($context->inside_negation) { - return false; } } }