From 625bc8edb250371c9b2433c03dc9edda52462f28 Mon Sep 17 00:00:00 2001 From: Maxim Smakouz Date: Fri, 29 Mar 2024 16:19:17 +0200 Subject: [PATCH] Improve get method phpdoc --- src/Service/EntityProviderInterface.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/EntityProviderInterface.php b/src/Service/EntityProviderInterface.php index 63172f37..40b2ebb7 100644 --- a/src/Service/EntityProviderInterface.php +++ b/src/Service/EntityProviderInterface.php @@ -9,12 +9,12 @@ interface EntityProviderInterface /** * Get/load entity by unique key/value pair. * - * @template TEntity + * @template TEntity of object * * @param class-string|string $role Entity role or class name. * @param array $scope KV pair to locate the model, currently only support one pair. * - * @psalm-return ($role is class-string ? TEntity : object)|null + * @return ($role is class-string ? TEntity|null : object|null) */ public function get(string $role, array $scope, bool $load = true): ?object; }