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