From 0197535ed6731b6bc02b3421aea0ec6c8f933b68 Mon Sep 17 00:00:00 2001
From: "Theresa.Grannum" <theresa.grannum@3688861.no-reply.drupal.org>
Date: Fri, 20 May 2022 18:26:40 +0000
Subject: [PATCH] Issue #3281634 by Theresa.Grannum, hestenet:
 VersionPolicyValidator::getAvailableReleases() does not need to be static

---
 src/Validator/VersionPolicyValidator.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Validator/VersionPolicyValidator.php b/src/Validator/VersionPolicyValidator.php
index 9e5d662bdf..27b27e2e9c 100644
--- a/src/Validator/VersionPolicyValidator.php
+++ b/src/Validator/VersionPolicyValidator.php
@@ -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() ?? [];
 
-- 
GitLab