The method slice() does not seem to exist on object<Spatie\Collection...\Macros\SimplePaginate>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
30
31
$options += [
32
'path' => Paginator::resolveCurrentPath(),
33
'pageName' => $pageName,
34
];
35
36
return new Paginator($results, $perPage, $page, $options);
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.