From b249d28dd0d324cb9637dafc3c4dce604b3cbe42 Mon Sep 17 00:00:00 2001 From: Szymon Janaczek Date: Sun, 8 Dec 2024 16:22:30 +0100 Subject: [PATCH 1/2] Phalcon\Di\DiInterface::get(): modified doc-block to improve IDE completion. --- src/Di/DiInterface.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Di/DiInterface.php b/src/Di/DiInterface.php index 129a362..5450696 100644 --- a/src/Di/DiInterface.php +++ b/src/Di/DiInterface.php @@ -31,9 +31,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; From 70b6119202f01c2bd185bae24afa6890209cac4a Mon Sep 17 00:00:00 2001 From: Szymon Janaczek Date: Sun, 8 Dec 2024 15:24:46 +0000 Subject: [PATCH 2/2] 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 {