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:
parent
3c61b17843
commit
87e2300b65
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user