From ed6f70f8b8921c0501ebaf347b5c0c0800f1066c Mon Sep 17 00:00:00 2001
From: Dave Long <dave@longwaveconsulting.com>
Date: Mon, 4 Mar 2024 15:30:26 +0000
Subject: [PATCH] Issue #3417521 by jayhuskins: Update typing for plugin
 definition to include object

---
 core/lib/Drupal/Component/Plugin/PluginBase.php                | 2 +-
 core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/lib/Drupal/Component/Plugin/PluginBase.php b/core/lib/Drupal/Component/Plugin/PluginBase.php
index 67691784b3ca..6a8955b0a1f5 100644
--- a/core/lib/Drupal/Component/Plugin/PluginBase.php
+++ b/core/lib/Drupal/Component/Plugin/PluginBase.php
@@ -22,7 +22,7 @@ abstract class PluginBase implements PluginInspectionInterface, DerivativeInspec
   /**
    * The plugin implementation definition.
    *
-   * @var array
+   * @var \Drupal\Component\Plugin\Definition\PluginDefinitionInterface|array
    */
   protected $pluginDefinition;
 
diff --git a/core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php b/core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php
index ab89a06f16af..9924c2b09782 100644
--- a/core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php
+++ b/core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php
@@ -23,7 +23,7 @@ public function getPluginId();
   /**
    * Gets the definition of the plugin implementation.
    *
-   * @return array
+   * @return \Drupal\Component\Plugin\Definition\PluginDefinitionInterface|array
    *   The plugin definition, as returned by the discovery object used by the
    *   plugin manager.
    */
-- 
GitLab