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