Skip to content
Snippets Groups Projects
Commit 0197535e authored by Theresa Grannum's avatar Theresa Grannum Committed by Adam G-H
Browse files

Issue #3281634 by Theresa.Grannum, hestenet:...

Issue #3281634 by Theresa.Grannum, hestenet: VersionPolicyValidator::getAvailableReleases() does not need to be static
parent d90ebb93
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ final class VersionPolicyValidator implements EventSubscriberInterface {
}
$installed_version = $this->getInstalledVersion();
$available_releases = static::getAvailableReleases($updater);
$available_releases = $this->getAvailableReleases($updater);
// Invoke each rule in the order that they were added to $rules, stopping
// when one returns error messages.
......@@ -225,7 +225,7 @@ final class VersionPolicyValidator implements EventSubscriberInterface {
*
* @see \Drupal\automatic_updates\ProjectInfo::getInstallableReleases()
*/
private static function getAvailableReleases(Updater $updater): array {
private function getAvailableReleases(Updater $updater): array {
$project_info = new ProjectInfo('drupal');
$available_releases = $project_info->getInstallableReleases() ?? [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment