From 889379c8c61e01878908467016ad2217e7e310db Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 5 May 2022 18:39:09 +0200 Subject: [PATCH] Add generics to ContainerInterface --- src/ContainerInterface.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ContainerInterface.php b/src/ContainerInterface.php index b2cad40..d9e8768 100644 --- a/src/ContainerInterface.php +++ b/src/ContainerInterface.php @@ -6,6 +6,8 @@ /** * Describes the interface of a container that exposes methods to read its entries. + * + * @template T of mixed */ interface ContainerInterface { @@ -17,7 +19,7 @@ interface ContainerInterface * @throws NotFoundExceptionInterface No entry was found for **this** identifier. * @throws ContainerExceptionInterface Error while retrieving the entry. * - * @return mixed Entry. + * @return T */ public function get(string $id);