From 1bb76232b0edf3230b37535c583ff6e4933557c2 Mon Sep 17 00:00:00 2001
From: Eli <elliot.ward@gmail.com>
Date: Sat, 28 Jan 2023 16:13:08 +0000
Subject: [PATCH] =?UTF-8?q?#3337250:=20=E2=99=BB=EF=B8=8F=20=20Use=20prope?=
 =?UTF-8?q?rty=20promotion=20for=20$jsonapiClient=20in=20TypedResourceObje?=
 =?UTF-8?q?ctStringFormatter=20.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../TypedResourceObjectStringFormatter.php               | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/Plugin/Field/FieldFormatter/TypedResourceObjectStringFormatter.php b/src/Plugin/Field/FieldFormatter/TypedResourceObjectStringFormatter.php
index 688d8d1..20eb542 100644
--- a/src/Plugin/Field/FieldFormatter/TypedResourceObjectStringFormatter.php
+++ b/src/Plugin/Field/FieldFormatter/TypedResourceObjectStringFormatter.php
@@ -24,13 +24,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
  */
 class TypedResourceObjectStringFormatter extends FormatterBase implements ContainerFactoryPluginInterface {
 
-  /**
-   * The JSON:API reference client.
-   *
-   * @var \Drupal\jsonapi_reference\JsonApiClientInterface
-   */
-  protected $jsonapiClient;
-
   /**
    * Constructs a new TypedResourceObjectStringFormatter.
    *
@@ -51,7 +44,7 @@ class TypedResourceObjectStringFormatter extends FormatterBase implements Contai
    * @param \Drupal\jsonapi_reference\JsonApiClientInterface $jsonapi_client
    *   The JSON:API reference client.
    */
-  public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, JsonApiClientInterface $jsonapi_client) {
+  public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, protected JsonApiClientInterface $jsonapi_client) {
     parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
 
     $this->jsonapiClient = $jsonapi_client;
-- 
GitLab