Skip to content
Snippets Groups Projects

Issue #3311472 Set minimum stability for form

@@ -87,8 +87,10 @@ final class VersionPolicyValidator implements EventSubscriberInterface {
$rules[] = MajorVersionMatch::class;
// ...and it must be a known, secure, installable release...
$rules[] = TargetVersionInstallable::class;
// ...and must be either a release candidate, or stable.
$rules[] = TargetVersionNotPreRelease::class;
if (!$stage instanceof ConsoleUpdateStage) {
// ...and must be either a release candidate, or stable.
$rules[] = TargetVersionNotPreRelease::class;
}
}
// If this is a cron update, we may need to do additional checks.
Loading