The expression return $this->newCopy(ar...ction, $this->items())) returns the type Stratadox\Collection\Collection which is incompatible with the type-hinted return Stratadox\Collection\Mappable.
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;