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

Fix #25 - only emit one MethodSignagureMismatch per line

This commit is contained in:
Matthew Brown 2016-10-18 16:00:03 -04:00
parent b7ffd66211
commit 375c522304

View File

@ -128,7 +128,12 @@ abstract class FunctionLikeChecker implements StatementsSource
$implemented_method_ids = MethodChecker::getOverriddenMethodIds((string)$this->getMethodId());
if ($implemented_method_ids) {
$have_emitted = false;
foreach ($implemented_method_ids as $implemented_method_id) {
if ($have_emitted) {
break;
}
if ($implemented_method_id === 'ArrayObject::__construct') {
continue;
}
@ -150,6 +155,7 @@ abstract class FunctionLikeChecker implements StatementsSource
return false;
}
$have_emitted = true;
break;
}
@ -167,6 +173,7 @@ abstract class FunctionLikeChecker implements StatementsSource
return false;
}
$have_emitted = true;
break;
}
}