From eb1987d5405a99d55039268b4fd683466df4f008 Mon Sep 17 00:00:00 2001
From: Claudiu Cristea <clau.cristea@gmail.com>
Date: Wed, 15 Jan 2025 17:17:57 +0200
Subject: [PATCH] Fix PHPStan issues

---
 src/Mapper/PrivateMessageMapper.php          | 2 +-
 src/Mapper/PrivateMessageMapperInterface.php | 2 +-
 tests/src/Kernel/EntityDeleteTest.php        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Mapper/PrivateMessageMapper.php b/src/Mapper/PrivateMessageMapper.php
index 24a086c2..d00e10ac 100644
--- a/src/Mapper/PrivateMessageMapper.php
+++ b/src/Mapper/PrivateMessageMapper.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\private_message\Mapper;
 
-@trigger_error(__CLASS__ . ' is deprecated in private_message:4.0.0 and is removed from private_message:5.0.0. No replacement is provided. See https://www.drupal.org/node/3490530', E_USER_DEPRECATED);
+@trigger_error(__NAMESPACE__ . '\PrivateMessageMapper is deprecated in private_message:4.0.0 and is removed from private_message:5.0.0. No replacement is provided. See https://www.drupal.org/node/3490530', E_USER_DEPRECATED);
 
 use Drupal\Core\Database\Connection;
 use Drupal\Core\Database\Query\SelectInterface;
diff --git a/src/Mapper/PrivateMessageMapperInterface.php b/src/Mapper/PrivateMessageMapperInterface.php
index 45294330..a7144ec0 100644
--- a/src/Mapper/PrivateMessageMapperInterface.php
+++ b/src/Mapper/PrivateMessageMapperInterface.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\private_message\Mapper;
 
-@trigger_error(__CLASS__ . ' is deprecated in private_message:4.0.0 and is removed from private_message:5.0.0. No replacement is provided. See https://www.drupal.org/node/3490530', E_USER_DEPRECATED);
+@trigger_error(__NAMESPACE__ . '\PrivateMessageMapperInterface is deprecated in private_message:4.0.0 and is removed from private_message:5.0.0. No replacement is provided. See https://www.drupal.org/node/3490530', E_USER_DEPRECATED);
 
 use Drupal\private_message\Entity\PrivateMessageInterface;
 use Drupal\user\UserInterface;
diff --git a/tests/src/Kernel/EntityDeleteTest.php b/tests/src/Kernel/EntityDeleteTest.php
index be7e603c..57152288 100644
--- a/tests/src/Kernel/EntityDeleteTest.php
+++ b/tests/src/Kernel/EntityDeleteTest.php
@@ -127,7 +127,7 @@ final class EntityDeleteTest extends KernelTestBase {
    * @return array[]
    *   The test data.
    */
-  public function testBannedMessagesProvider(): array {
+  public static function testBannedMessagesProvider(): array {
     return [
       // User A is logged in, which is the user that created the messages.
       ['a'],
-- 
GitLab