From 4be9410daa71e4d29a1b10c01c0570a61791efdd Mon Sep 17 00:00:00 2001
From: Andy Hebrank <andy.hebrank@platform.sh>
Date: Mon, 16 Dec 2024 11:14:06 -0500
Subject: [PATCH] Issue #3428553: Automated Drupal 11 compatibility fixes for
 config_patch

---
 config_patch.info.yml                    | 2 +-
 src/EventSubscriber/ConfigSubscriber.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config_patch.info.yml b/config_patch.info.yml
index 014cf9e..fbb4f57 100644
--- a/config_patch.info.yml
+++ b/config_patch.info.yml
@@ -1,6 +1,6 @@
 name: 'Config Patch'
 type: module
 description: 'Create patches from configuration diffs'
-core_version_requirement: ^9 || ^10
+core_version_requirement: ^10 || ^11
 package: 'Config'
 configure: config_patch.settings
diff --git a/src/EventSubscriber/ConfigSubscriber.php b/src/EventSubscriber/ConfigSubscriber.php
index fc39c47..ffba343 100644
--- a/src/EventSubscriber/ConfigSubscriber.php
+++ b/src/EventSubscriber/ConfigSubscriber.php
@@ -41,7 +41,7 @@ class ConfigSubscriber implements EventSubscriberInterface {
   /**
    * {@inheritdoc}
    */
-  public static function getSubscribedEvents() {
+  public static function getSubscribedEvents(): array {
     return [
       ConfigEvents::DELETE => 'onConfigChange',
       ConfigEvents::SAVE => 'onConfigChange',
-- 
GitLab