1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Don’t do a full class check where not necessary

This commit is contained in:
Matt Brown 2017-02-28 11:00:32 -05:00
parent 54026fc8f9
commit 518184f388

View File

@ -701,11 +701,9 @@ class CallChecker
if ($var_id === '$this') {
$does_class_exist = true;
} else {
$does_class_exist = ClassLikeChecker::checkFullyQualifiedClassLikeName(
$does_class_exist = ClassLikeChecker::classOrInterfaceExists(
$fq_class_name,
$statements_checker->getFileChecker(),
new CodeLocation($statements_checker->getSource(), $stmt->var),
$statements_checker->getSuppressedIssues()
$statements_checker->getFileChecker()
);
}