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