From 9824f91cc058d1dd9d1222870157d6cd699606b8 Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Sat, 28 Mar 2026 19:18:59 +0100 Subject: [PATCH] Fix Loggable template bounds for type-info compatibility --- src/Loggable/Entity/MappedSuperclass/AbstractLogEntry.php | 2 +- src/Loggable/LogEntryInterface.php | 2 +- src/Loggable/LoggableListener.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Loggable/Entity/MappedSuperclass/AbstractLogEntry.php b/src/Loggable/Entity/MappedSuperclass/AbstractLogEntry.php index d0965547a4..ea3e4aa2ed 100644 --- a/src/Loggable/Entity/MappedSuperclass/AbstractLogEntry.php +++ b/src/Loggable/Entity/MappedSuperclass/AbstractLogEntry.php @@ -15,7 +15,7 @@ use Gedmo\Loggable\Loggable; /** - * @phpstan-template T of Loggable|object + * @phpstan-template T of object * * @phpstan-implements LogEntryInterface * diff --git a/src/Loggable/LogEntryInterface.php b/src/Loggable/LogEntryInterface.php index a283580ece..afb6818bfe 100644 --- a/src/Loggable/LogEntryInterface.php +++ b/src/Loggable/LogEntryInterface.php @@ -12,7 +12,7 @@ /** * Interface to be implemented by log entry models. * - * @phpstan-template T of Loggable|object + * @phpstan-template T of object * * @author Javier Spagnoletti */ diff --git a/src/Loggable/LoggableListener.php b/src/Loggable/LoggableListener.php index 2c7836be9d..b042f058fa 100644 --- a/src/Loggable/LoggableListener.php +++ b/src/Loggable/LoggableListener.php @@ -36,7 +36,7 @@ * versioned?: string[], * } * - * @template T of Loggable|object + * @template T of object * * @phpstan-extends MappedEventSubscriber */