static::getMixins() of type array is incompatible with the type Illuminate\Contracts\Support\Arrayable expected by parameter $value of collect().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
27
collect(/** @scrutinizer ignore-type */ static::getMixins())->each(static function ($extension, $mixin) {
Loading history...
28
if (! is_subclass_of($mixin, AbstractComponent::class)) {
29
throw new MixinInvalidException(sprintf(
30
'Mixed class %s is not descendant of %s.',
31
$mixin,
32
AbstractComponent::class
33
));
34
}
35
if (! method_exists($extension, 'mixin')) {
36
throw new MacroableMissedException(sprintf('Class %s doesn’t use Macroable Trait.', $extension));