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