The expression return $this->newCopy($items) returns the type Stratadox\Collection\Collection which is incompatible with the documented return type Stratadox\ImmutableCollection\Altering.
Loading history...
32
}
33
34
/** @see Collection::items() */
35
abstract public function items(): array;
36
37
/**
38
* @see ImmutableCollection::newCopy()
39
* @param array $items
40
* @return static
41
*/
42
abstract protected function newCopy(array $items): Collection;