The expression return $this->newCopy(ar...ms(), $amount, $value)) returns the type Stratadox\Collection\Collection which is incompatible with the documented return type Stratadox\ImmutableCollection\Padding.
The expression return $this->newCopy(ar...s(), -$amount, $value)) returns the type Stratadox\Collection\Collection which is incompatible with the documented return type Stratadox\ImmutableCollection\Padding.
Loading history...
42
}
43
44
/** @see Collection::items() */
45
abstract public function items(): array;
46
47
/**
48
* @see ImmutableCollection::newCopy()
49
* @param array $items
50
* @return Collection|static
51
*/
52
abstract protected function newCopy(array $items): Collection;