1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Don’t stop analysing after class_exists

This commit is contained in:
Brown 2019-06-28 11:22:52 -04:00
parent 3c61b17843
commit 87e2300b65

View File

@ -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;
}
}
}