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