From 4912be319e25bdd0a51c1413a56d1da78bbbce38 Mon Sep 17 00:00:00 2001
From: Dave Long <dave@longwaveconsulting.com>
Date: Tue, 25 Jul 2023 17:10:34 +0100
Subject: [PATCH] Issue #3374223 by andypost, smustgrave, neclimdul: Fix
 deprecated overloaded function usage in PHP 8.3

---
 core/lib/Drupal/Component/Plugin/PluginManagerBase.php | 2 +-
 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/lib/Drupal/Component/Plugin/PluginManagerBase.php b/core/lib/Drupal/Component/Plugin/PluginManagerBase.php
index eb2163799900..d8500f3456ed 100644
--- a/core/lib/Drupal/Component/Plugin/PluginManagerBase.php
+++ b/core/lib/Drupal/Component/Plugin/PluginManagerBase.php
@@ -125,7 +125,7 @@ protected function handlePluginNotFound($plugin_id, array $configuration) {
    *   If the method is not implemented in the concrete plugin manager class.
    */
   protected function getFallbackPluginId($plugin_id, array $configuration = []) {
-    throw new \BadMethodCallException(get_class() . '::getFallbackPluginId() not implemented.');
+    throw new \BadMethodCallException(static::class . '::getFallbackPluginId() not implemented.');
   }
 
   /**
diff --git a/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php b/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php
index fbc70208c84d..96f441681d7c 100644
--- a/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php
@@ -27,7 +27,7 @@ protected function setUp(): void {
     parent::setUp();
 
     $property = new \ReflectionProperty('Drupal\Component\Utility\Html', 'seenIdsInit');
-    $property->setValue(NULL);
+    $property->setValue(NULL, NULL);
   }
 
   /**
-- 
GitLab