We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abf6e67 commit 8cba7beCopy full SHA for 8cba7be
test/InMemoryContainer.php
@@ -14,7 +14,8 @@ final class InMemoryContainer implements ContainerInterface
14
{
15
private array $services = [];
16
17
- public function get(string $id): mixed
+ /** @param string $id */
18
+ public function get($id): mixed
19
20
if (! $this->has($id)) {
21
throw new class ('Not Found') extends Exception implements NotFoundExceptionInterface {
@@ -24,7 +25,8 @@ public function get(string $id): mixed
24
25
return $this->services[$id];
26
}
27
- public function has(string $id): bool
28
29
+ public function has($id): bool
30
31
return array_key_exists($id, $this->services);
32
0 commit comments