1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Don’t emit another error if we’re already ignoring TypeCoercion

This commit is contained in:
Matthew Brown 2017-01-09 00:57:31 -05:00
parent bf76843d94
commit 380ae61b3c

View File

@ -1337,7 +1337,7 @@ class CallChecker
}
}
if (!$type_match_found) {
if (!$type_match_found && !$coerced_type) {
if ($scalar_type_match_found) {
if ($cased_method_id !== 'echo') {
if (IssueBuffer::accepts(