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