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