From b66faac8e9ad94edb3efec37e9c68016d8584f33 Mon Sep 17 00:00:00 2001
From: Patrick Kenny <33362-ptmkenny@users.noreply.drupalcode.org>
Date: Tue, 7 Jan 2025 15:55:32 +0900
Subject: [PATCH] fix config and update type hint

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

diff --git a/src/EventSubscriber/ResponseSubscriber.php b/src/EventSubscriber/ResponseSubscriber.php
index 5c8d7bd..178682e 100644
--- a/src/EventSubscriber/ResponseSubscriber.php
+++ b/src/EventSubscriber/ResponseSubscriber.php
@@ -42,7 +42,7 @@ class ResponseSubscriber implements EventSubscriberInterface {
     protected ConfigFactoryInterface $configFactory,
     protected RouteMatchInterface $currentRouteMatch,
   ) {
-    $this->config = $this->configFactory->get('jsonapi_links');
+    $this->config = $this->configFactory->get('jsonapi_links.settings');
   }
 
   /**
@@ -110,7 +110,7 @@ class ResponseSubscriber implements EventSubscriberInterface {
   /**
    * Unsets links in JSON:API responses.
    */
-  protected function removeLinks(mixed &$data, ?string $node = NULL): void {
+  protected function removeLinks(mixed &$data, string|int|null $node = NULL): void {
     if (!is_null($node)) {
       $this->path[] = $node;
     }
-- 
GitLab