We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30352ab commit fe4b6c2Copy full SHA for fe4b6c2
test/InMemoryContainer.php
@@ -16,9 +16,10 @@ final class InMemoryContainer implements ContainerInterface
16
private $services = [];
17
18
/**
19
+ * @param string $id
20
* @return mixed
21
*/
- public function get(string $id)
22
+ public function get($id)
23
{
24
if (! $this->has($id)) {
25
throw new class ($id . ' was not found') extends RuntimeException implements NotFoundExceptionInterface {
@@ -28,7 +29,8 @@ public function get(string $id)
28
29
return $this->services[$id];
30
}
31
- public function has(string $id): bool
32
+ /** @param string $id */
33
+ public function has($id): bool
34
35
return array_key_exists($id, $this->services);
36
0 commit comments