The expression return $this->newCopy($items) returns the type Stratadox\Collection\Collection which is incompatible with the documented return type Stratadox\ImmutableCollection\Purging.
The expression return $this->newCopy(ar...on(...) { /* ... */ })) returns the type Stratadox\Collection\Collection which is incompatible with the documented return type Stratadox\ImmutableCollection\Purging.
Loading history...
41
$this->items(),
42
function ($item) use ($itemsToRemove) {
43
return !in_array($item, $itemsToRemove, true);
44
}
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;