Skip to content

Commit e493ce4

Browse files
committed
Fixed bug that nano does not work when using psr container v2.0
1 parent 3ccd3fd commit e493ce4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ vendor/friendsofphp/php-cs-fixer/tests/Runner/
3030
vendor/friendsofphp/php-cs-fixer/tests/Smoke/
3131
vendor/friendsofphp/php-cs-fixer/tests/Tokenizer/
3232
Would skip repository vendor/swoole/ide-helper
33+
.phpunit.result.cache

src/ContainerProxy.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __call($name, $arguments)
4444
return $this->container->{$name}(...$arguments);
4545
}
4646

47-
public function get(string $id)
47+
public function get($id)
4848
{
4949
return $this->container->get($id);
5050
}
@@ -54,7 +54,7 @@ public function define(string $name, $definition)
5454
return $this->container->define($name, $definition);
5555
}
5656

57-
public function has(string $id)
57+
public function has($id): bool
5858
{
5959
return $this->container->has($id);
6060
}

0 commit comments

Comments
 (0)