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...
26
}
27
28
public function hasMore()
29
{
30
return $this->url !== null;
31
}
32
33
protected function collectionFromResult($result)
34
{
35
// If we have one result which is not an assoc array, make it the first element of an array for the
36
// collectionFromResult function so we always return a collection from filter
37
if ((bool) count(array_filter(array_keys($result), 'is_string'))) {
38
$result = [ $result ];
39
}
40
41
$class = $this->class;
42
$collection = [];
43
44
foreach ($result as $r) {
45
$collection[] = new $class($this->connection, $r);