Skip to content

Commit fe4b6c2

Browse files
committed
Revert (psr/container) parameter type addition
Signed-off-by: George Steel <george@net-glue.co.uk>
1 parent 30352ab commit fe4b6c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/InMemoryContainer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ final class InMemoryContainer implements ContainerInterface
1616
private $services = [];
1717

1818
/**
19+
* @param string $id
1920
* @return mixed
2021
*/
21-
public function get(string $id)
22+
public function get($id)
2223
{
2324
if (! $this->has($id)) {
2425
throw new class ($id . ' was not found') extends RuntimeException implements NotFoundExceptionInterface {
@@ -28,7 +29,8 @@ public function get(string $id)
2829
return $this->services[$id];
2930
}
3031

31-
public function has(string $id): bool
32+
/** @param string $id */
33+
public function has($id): bool
3234
{
3335
return array_key_exists($id, $this->services);
3436
}

0 commit comments

Comments
 (0)