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:
parent
cfbf256593
commit
17205bc093
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user