/** * {@inheritdoc} */ protected function error($messageKey, $value = null) { $result = parent::error($messageKey, $value); if (self::INVALID_DATETIME === $messageKey) { $this->invalidateFormatter = true; } return $result; }