@@ -67,6 +67,14 @@ class UpdateVersionValidator implements EventSubscriberInterface {
$error=ValidationResult::createError($messages);
$event->addValidationResult($error);
}
elseif($from_version->getVersionExtra()==='dev'){
$messages[]=$this->t('Drupal cannot be automatically updated from its current version, @from_version, to the recommended version, @to_version, because automatic updates from a dev version to any other version are not supported.',[
$messages[]=$this->t('Drupal cannot be automatically updated from its current version, @from_version, to the recommended version, @to_version, because automatic updates from one major version to another are not supported.',[
$result=ValidationResult::createError(['Drupal cannot be automatically updated from its current version, 9.8.0-dev, to the recommended version, 9.8.1, because automatic updates from a dev version to any other version are not supported.']);