The method isEmpty() does not seem to exist on object<Spatie\CollectionMacros\Macros\Rotate>.
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.
The method count() does not seem to exist on object<Spatie\CollectionMacros\Macros\Rotate>.
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...
26
27
$offset %= $count;
28
29
if ($offset < 0) {
30
$offset += $count;
31
}
32
33
return new static($this->slice($offset)->merge($this->take($offset)));
The method slice() does not seem to exist on object<Spatie\CollectionMacros\Macros\Rotate>.
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.
The method take() does not seem to exist on object<Spatie\CollectionMacros\Macros\Rotate>.
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.
The call to Rotate::__construct() has too many arguments starting with $this->slice($offset)->m...e($this->take($offset)).
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.
In this case you can add the @ignorePhpDoc
annotation to the duplicate definition and it will be ignored.
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.