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:
parent
54026fc8f9
commit
518184f388
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user