The expression return $this->newCopy(ar...ion, 'isSatisfiedBy'))) returns the type Stratadox\Collection\Collection which includes types incompatible with the type-hinted return Stratadox\Collection\Filterable.
Loading history...
32
$this->items(), [$condition, 'isSatisfiedBy']
33
));
34
}
35
36
/**
37
* @see Filterable::filterWith
38
* @param Closure $function
39
* @return Filterable|static
40
*/
41
public function filterWith(Closure $function): Filterable
The expression return $this->newCopy(ar...s->items(), $function)) returns the type Stratadox\Collection\Collection which includes types incompatible with the type-hinted return Stratadox\Collection\Filterable.
Loading history...
44
$this->items(), $function
45
));
46
}
47
48
/** @see Collection::items() */
49
abstract public function items(): array;
50
51
/**
52
* @see ImmutableCollection::newCopy()
53
* @param array $items
54
* @return Collection|static
55
*/
56
abstract protected function newCopy(array $items): Collection;