@@ -6,7 +6,7 @@ class EntityManager implements EntityManagerInterface
66{
77
88 /**
9- * @template T
9+ * @template T of object
1010 * @phpstan-param class-string<T> $entityName
1111 * @phpstan-param mixed $id
1212 * @phpstan-param integer|null $lockMode
@@ -16,30 +16,30 @@ class EntityManager implements EntityManagerInterface
1616 public function find($entityName, $id, $lockMode = null, $lockVersion = null);
1717
1818 /**
19- * @template T
19+ * @template T of object
2020 * @phpstan-param T $entity
2121 * @phpstan-return T
2222 * @deprecated 2.7 This method is being removed from the ORM and won't have any replacement
2323 */
2424 public function merge($entity);
2525
2626 /**
27- * @template T
27+ * @template T of object
2828 * @phpstan-param class-string<T> $entityName
2929 * @phpstan-return EntityRepository<T>
3030 */
3131 public function getRepository($entityName);
3232
3333 /**
34- * @template T
34+ * @template T of object
3535 * @phpstan-param class-string<T> $entityName
3636 * @phpstan-param mixed $id
3737 * @phpstan-return T|null
3838 */
3939 public function getReference($entityName, $id);
4040
4141 /**
42- * @template T
42+ * @template T of object
4343 * @phpstan-param class-string<T> $entityName
4444 * @phpstan-param mixed $identifier
4545 *
@@ -48,7 +48,7 @@ class EntityManager implements EntityManagerInterface
4848 public function getPartialReference($entityName, $identifier);
4949
5050 /**
51- * @template T
51+ * @template T of object
5252 * @phpstan-param T $entity
5353 * @phpstan-param bool $deep
5454 * @phpstan-return T
0 commit comments