/** * {@inheritdoc} */ public function removeInstance($element) : bool { $return = parent::removeInstance($element); if ($return) { $this->removeFromHistory($element); } return $return; }