This check compares calls to functions or methods with their respective definitions.
If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the
check may pick up the wrong definition and report false positives. One codebase
where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.
Loading history...
24
20
}
25
26
20
public function getStub()
27
{
28
20
if (empty($this->stubConfiguration)) {
29
1
throw new Parser\Exception\ParseException();
30
}
31
32
19
$stub = $this->getInitialStub();
33
34
19
foreach ($this->stubConfiguration[$this->className]['mockMethods'] as $methodName => $methodMockConfig) {
35
19
(new MockMethod\Resolver($this->testCase, $stub, $methodName, $methodMockConfig))
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.