Skip to content
Snippets Groups Projects

Issue #3276661: Cron version validation runs even if cron updates are disabled

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -25,7 +25,9 @@ final class CronUpdateVersionValidator extends UpdateVersionValidator {
@@ -25,7 +25,9 @@ final class CronUpdateVersionValidator extends UpdateVersionValidator {
* {@inheritdoc}
* {@inheritdoc}
*/
*/
protected static function isStageSupported(Stage $stage): bool {
protected static function isStageSupported(Stage $stage): bool {
return $stage instanceof CronUpdater;
// @todo Add test coverage for the call to getMode() in
 
// https://www.drupal.org/i/3276662.
 
return $stage instanceof CronUpdater && $stage->getMode() !== CronUpdater::DISABLED;
}
}
/**
/**
Loading