From ea525ff0a69a9d9163bc84792487e10930bc4a7c Mon Sep 17 00:00:00 2001 From: Dmitriy Romashov Date: Fri, 16 May 2025 00:02:00 +0300 Subject: [PATCH] Fix TEntity generic --- src/FactoryInterface.php | 2 +- src/Iterator.php | 2 +- src/ORMInterface.php | 2 +- src/RepositoryInterface.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/FactoryInterface.php b/src/FactoryInterface.php index 1f48526e..2afcc53f 100644 --- a/src/FactoryInterface.php +++ b/src/FactoryInterface.php @@ -41,7 +41,7 @@ public function loader( ): LoaderInterface; /** - * @template TEntity + * @template TEntity of object * * Create repository associated with given role. * diff --git a/src/Iterator.php b/src/Iterator.php index 31f9f1c9..e4bc3965 100644 --- a/src/Iterator.php +++ b/src/Iterator.php @@ -13,7 +13,7 @@ /** * Iterates over given data-set and instantiates objects. * - * @template TEntity + * @template TEntity of object * * @template-implements IteratorAggregate */ diff --git a/src/ORMInterface.php b/src/ORMInterface.php index abb28c4b..1a71239a 100644 --- a/src/ORMInterface.php +++ b/src/ORMInterface.php @@ -33,7 +33,7 @@ interface ORMInterface extends * Create new entity based on given role and input data. Method will attempt to re-use * already loaded entity. * - * @template TEntity + * @template TEntity of object * * @param class-string|string $role Entity role or class name. * @param array $data Entity data. diff --git a/src/RepositoryInterface.php b/src/RepositoryInterface.php index 422cb9c5..6d33fbe4 100644 --- a/src/RepositoryInterface.php +++ b/src/RepositoryInterface.php @@ -7,7 +7,7 @@ /** * Defines ability to locate entities based on scope parameters. * - * @template TEntity + * @template TEntity of object */ interface RepositoryInterface {