Skip to content

Commit 8cba7be

Browse files
committed
Remove parameter type hints for compat with container v1.0
Signed-off-by: George Steel <[email protected]>
1 parent abf6e67 commit 8cba7be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/InMemoryContainer.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ final class InMemoryContainer implements ContainerInterface
1414
{
1515
private array $services = [];
1616

17-
public function get(string $id): mixed
17+
/** @param string $id */
18+
public function get($id): mixed
1819
{
1920
if (! $this->has($id)) {
2021
throw new class ('Not Found') extends Exception implements NotFoundExceptionInterface {
@@ -24,7 +25,8 @@ public function get(string $id): mixed
2425
return $this->services[$id];
2526
}
2627

27-
public function has(string $id): bool
28+
/** @param string $id */
29+
public function has($id): bool
2830
{
2931
return array_key_exists($id, $this->services);
3032
}

0 commit comments

Comments
 (0)