/** * @inheritdoc */ protected function removeRule($rule) { parent::removeRule($rule); if ($this->_rules !== null) { unset($this->_rules[$rule->name]); } $this->_items = null; $this->invalidate([self::PART_ITEMS, self::PART_RULES]); return true; }