Skip to content
Permalink
Browse files

Don’t stop analysing after class_exists

  • Loading branch information...
muglug committed Jun 28, 2019
1 parent 3c61b17 commit 87e2300b65b8498a67e2f6b959013ae0e9ea7fb3
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php
@@ -645,8 +645,6 @@ function (Assertion $assertion) use ($generic_params) : Assertion {
if (!$codebase->classlikes->classExists($resolved_name)) {
$context->phantom_classes[strtolower($resolved_name)] = true;
} elseif ($context->inside_negation) {
return false;
}
}
}
@@ -663,8 +661,6 @@ function (Assertion $assertion) use ($generic_params) : Assertion {
if (!$codebase->classlikes->interfaceExists($resolved_name)) {
$context->phantom_classes[strtolower($resolved_name)] = true;
} elseif ($context->inside_negation) {
return false;
}
}
}

0 comments on commit 87e2300

Please sign in to comment.
You can’t perform that action at this time.