/** * {@inheritdoc} */ public function push($value) : CollectionInterface { $this->validate($this->type, [$value]); return new self($this->type, parent::push($value)->toPrimitive()); }