The expression return $this->newCopy(ar...ms(), $other->items())) returns the type Stratadox\Collection\Collection which is incompatible with the documented return type Stratadox\ImmutableCollection\Merging.
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 Collection|static
39
*/
40
abstract protected function newCopy(array $items): Collection;