We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40d0b06 commit 2273787Copy full SHA for 2273787
src/Bar.php
@@ -0,0 +1,11 @@
1
+<?php
2
+
3
+namespace Psr\Container;
4
5
+class Bar
6
+{
7
+ public function test(): int
8
+ {
9
+ return 1;
10
+ }
11
+}
src/ContainerInterface.php
@@ -12,7 +12,7 @@ interface ContainerInterface
12
/**
13
* Finds an entry of the container by its identifier and returns it.
14
*
15
- * @template T of mixed
+ * @template T of object
16
17
* @param class-string<T>|string $id Identifier of the entry to look for.
18
src/Foo.php
+class Foo
+ public function test(ContainerInterface $context): void
+ $context->get(Bar::class)->test()
0 commit comments