From a3fc681a9a4dc68d2f96b341555b384483789ced Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Sun, 14 Feb 2021 17:14:30 +0100 Subject: [PATCH] Add generics to ClassMetadata --- lib/Doctrine/Persistence/Mapping/ClassMetadata.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Persistence/Mapping/ClassMetadata.php b/lib/Doctrine/Persistence/Mapping/ClassMetadata.php index 4a819aa1..502ea5ad 100644 --- a/lib/Doctrine/Persistence/Mapping/ClassMetadata.php +++ b/lib/Doctrine/Persistence/Mapping/ClassMetadata.php @@ -6,6 +6,8 @@ /** * Contract for a Doctrine persistence layer ClassMetadata class to implement. + * + * @template T of object */ interface ClassMetadata { @@ -14,7 +16,7 @@ interface ClassMetadata * * @return string * - * @psalm-return class-string + * @psalm-return class-string */ public function getName(); @@ -30,7 +32,7 @@ public function getIdentifier(); /** * Gets the ReflectionClass instance for this mapped class. * - * @return ReflectionClass + * @return ReflectionClass */ public function getReflectionClass();