From f4d5283f705f6ac51e81c8299ace074a619b40d7 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 10 Apr 2022 23:31:12 +0200 Subject: [PATCH] Fix static analysis for Persistence 2.5 (#9648) --- lib/Doctrine/ORM/EntityManager.php | 2 +- lib/Doctrine/ORM/EntityManagerInterface.php | 2 +- lib/Doctrine/ORM/EntityRepository.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/EntityManager.php b/lib/Doctrine/ORM/EntityManager.php index 6203b40c46..85fa149f0a 100644 --- a/lib/Doctrine/ORM/EntityManager.php +++ b/lib/Doctrine/ORM/EntityManager.php @@ -779,7 +779,7 @@ public function lock($entity, $lockMode, $lockVersion = null) * @return ObjectRepository|EntityRepository The repository class. * @psalm-return EntityRepository * - * @template T + * @template T of object */ public function getRepository($entityName) { diff --git a/lib/Doctrine/ORM/EntityManagerInterface.php b/lib/Doctrine/ORM/EntityManagerInterface.php index 9f7fa2dec0..13e407d41e 100644 --- a/lib/Doctrine/ORM/EntityManagerInterface.php +++ b/lib/Doctrine/ORM/EntityManagerInterface.php @@ -32,7 +32,7 @@ interface EntityManagerInterface extends ObjectManager * * @psalm-return EntityRepository * - * @template T + * @template T of object */ public function getRepository($className); diff --git a/lib/Doctrine/ORM/EntityRepository.php b/lib/Doctrine/ORM/EntityRepository.php index 20eb08e8ab..5260029ed5 100644 --- a/lib/Doctrine/ORM/EntityRepository.php +++ b/lib/Doctrine/ORM/EntityRepository.php @@ -30,7 +30,7 @@ * This class is designed for inheritance and users can subclass this class to * write their own repositories with business-specific methods to locate entities. * - * @template T + * @template T of object * @template-implements Selectable * @template-implements ObjectRepository */