From 7890382ec0a804b1da5733ca820918c1ac45ee33 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 5 Mar 2024 08:50:19 +0100 Subject: [PATCH] Fix sa --- src/Messenger/BackwardCompatibleMessageHandlerInterface.php | 1 - src/Model/NoDriverGalleryManager.php | 2 +- src/Model/NoDriverMediaManager.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Messenger/BackwardCompatibleMessageHandlerInterface.php b/src/Messenger/BackwardCompatibleMessageHandlerInterface.php index f9d85f102..a44e87cdf 100644 --- a/src/Messenger/BackwardCompatibleMessageHandlerInterface.php +++ b/src/Messenger/BackwardCompatibleMessageHandlerInterface.php @@ -17,7 +17,6 @@ // `Symfony\Component\Messenger\Handler\MessageHandlerInterface` was removed in "symfony/messenger" 7. // @todo: Remove this interface when dropping support for "symfony/messenger" < 7. -/** @psalm-suppress UndefinedClass */ if (interface_exists(MessageHandlerInterface::class)) { class_alias(MessageHandlerInterface::class, __NAMESPACE__.'\BackwardCompatibleMessageHandlerInterface'); } else { diff --git a/src/Model/NoDriverGalleryManager.php b/src/Model/NoDriverGalleryManager.php index 92d643954..3daa404a8 100644 --- a/src/Model/NoDriverGalleryManager.php +++ b/src/Model/NoDriverGalleryManager.php @@ -57,7 +57,7 @@ public function findOneBy(array $criteria, ?array $orderBy = null): ?object throw new NoDriverException(); } - public function find($id): ?object + public function find(mixed $id): ?object { throw new NoDriverException(); } diff --git a/src/Model/NoDriverMediaManager.php b/src/Model/NoDriverMediaManager.php index 752a1bdcd..bd526c8ee 100644 --- a/src/Model/NoDriverMediaManager.php +++ b/src/Model/NoDriverMediaManager.php @@ -57,7 +57,7 @@ public function findOneBy(array $criteria, ?array $orderBy = null): ?object throw new NoDriverException(); } - public function find($id): ?object + public function find(mixed $id): ?object { throw new NoDriverException(); }