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