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

Be more strict about what properties we check

This commit is contained in:
Matthew Brown 2017-07-10 20:20:40 -04:00
parent cfbf256593
commit 17205bc093

View File

@ -617,7 +617,7 @@ class FetchChecker
$statements_checker->getFileChecker(),
new CodeLocation($statements_checker->getSource(), $stmt->class),
$statements_checker->getSuppressedIssues()
) === false) {
) !== true) {
return false;
}
}
@ -626,6 +626,8 @@ class FetchChecker
$stmt->class->inferredType = $fq_class_name ? new Type\Union([new TNamedObject($fq_class_name)]) : null;
}
if ($fq_class_name &&
$context->check_classes &&
$context->check_variables &&