From 778b156a366d514f1f8c33dccd99f64b5407a28d Mon Sep 17 00:00:00 2001 From: Justin Frydman Date: Thu, 31 Aug 2023 14:04:56 -0600 Subject: [PATCH] Add specific phpstan-return and update return --- src/ContainerInterface.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ContainerInterface.php b/src/ContainerInterface.php index 99b556d..bd63d54 100644 --- a/src/ContainerInterface.php +++ b/src/ContainerInterface.php @@ -27,7 +27,8 @@ public function bind( string $id, $implementation = null ); * * @param string|class-string $id Identifier of the entry to look for. * - * @return ($id is class-string ? T : mixed) Entry. + * @return T|mixed + * @phpstan-return ($id is class-string ? T : mixed) */ public function get( string $id );