The expression return $this->newCopy(ar...ms(), $amount, $value)) returns the type Stratadox\Collection\Collection which is incompatible with the type-hinted return Stratadox\Collection\Paddable.
Loading history...
31
}
32
33
/**
34
* @see Paddable::padLeft()
35
* @param int $amount
36
* @param mixed $value
37
* @return Paddable|static
38
*/
39
public function padLeft(int $amount, $value) : Paddable
The expression return $this->newCopy(ar...s(), -$amount, $value)) returns the type Stratadox\Collection\Collection which is incompatible with the type-hinted return Stratadox\Collection\Paddable.
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;