From 70b6119202f01c2bd185bae24afa6890209cac4a Mon Sep 17 00:00:00 2001 From: Szymon Janaczek Date: Sun, 8 Dec 2024 15:24:46 +0000 Subject: [PATCH] Phalcon\Di\Di::get(): modified doc-block to improve IDE completion. --- src/Di/Di.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Di/Di.php b/src/Di/Di.php index 1dbf969..3625d0c 100644 --- a/src/Di/Di.php +++ b/src/Di/Di.php @@ -125,9 +125,10 @@ public function attempt(string $name, $definition, bool $shared = false): Servic /** * Resolves the service based on its configuration * - * @param string $name + * @template T + * @param string|class-string $name * @param mixed $parameters - * @return mixed + * @return mixed|T */ public function get(string $name, $parameters = null): mixed {