Skip to content
Snippets Groups Projects

Issue #3280180: Consolidate all version validation logic into a single class

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -12,7 +12,7 @@ class TargetVersionInstallableValidator extends VersionValidatorBase {
protected function doValidation(Updater $updater, string $installed_version, ?string $target_version): array {
// If the target version isn't in the list of installable releases, then it
// isn't secure and supported and we should flag an error.
$releases = $this->getAvailableReleases($event);
$releases = $this->getAvailableReleases($updater);
if (empty($releases) || !array_key_exists($target_version, $releases)) {
return [
$this->t('Cannot update Drupal core to @target_version because it is not in the list of installable releases.'),
Loading