We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7079847 commit a34d109Copy full SHA for a34d109
src/ContainerInterface.php
@@ -12,12 +12,14 @@ interface ContainerInterface
12
/**
13
* Finds an entry of the container by its identifier and returns it.
14
*
15
- * @param string $id Identifier of the entry to look for.
+ * @template T of mixed
16
+ *
17
+ * @param T|string $id Identifier of the entry to look for.
18
19
* @throws NotFoundExceptionInterface No entry was found for **this** identifier.
20
* @throws ContainerExceptionInterface Error while retrieving the entry.
21
- * @return mixed Entry.
22
+ * @return T|mixed Entry.
23
*/
24
public function get(string $id);
25
0 commit comments