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 82c96fd commit 26e07eeCopy full SHA for 26e07ee
test/InMemoryContainer.php
@@ -16,10 +16,9 @@ final class InMemoryContainer implements ContainerInterface
16
private $services = [];
17
18
/**
19
- * @param string $id
20
* @return mixed
21
*/
22
- public function get($id)
+ public function get(string $id)
23
{
24
if (! $this->has($id)) {
25
throw new class ($id . ' was not found') extends RuntimeException implements NotFoundExceptionInterface {
@@ -29,11 +28,7 @@ public function get($id)
29
28
return $this->services[$id];
30
}
31
32
- /**
33
34
- * @return bool
35
- */
36
- public function has($id)
+ public function has(string $id): bool
37
38
return array_key_exists($id, $this->services);
39
0 commit comments