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

Keep going after seeing a type coercion

This commit is contained in:
Matt Brown 2017-12-14 11:33:18 -05:00
parent b319f54ff6
commit d440e4bbb1

View File

@ -2315,7 +2315,7 @@ class CallChecker
),
$statements_checker->getSuppressedIssues()
)) {
return false;
// keep soldiering on
}
} else {
if (IssueBuffer::accepts(
@ -2326,12 +2326,12 @@ class CallChecker
),
$statements_checker->getSuppressedIssues()
)) {
return false;
// keep soldiering on
}
}
}
if (!$type_match_found) {
if (!$coerced_type && !$type_match_found) {
$types_can_be_identical = TypeChecker::canBeIdenticalTo(
$project_checker,
$input_type,
@ -2503,7 +2503,7 @@ class CallChecker
),
$statements_checker->getSuppressedIssues()
)) {
return false;
// keep soldiering on
}
} else {
if (IssueBuffer::accepts(
@ -2514,7 +2514,7 @@ class CallChecker
),
$statements_checker->getSuppressedIssues()
)) {
return false;
// keep soldiering on
}
}
}