Skip to content

Commit

Permalink
Fixed bug that nano does not work when using psr container v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jul 20, 2021
1 parent 3ccd3fd commit e493ce4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ vendor/friendsofphp/php-cs-fixer/tests/Runner/
vendor/friendsofphp/php-cs-fixer/tests/Smoke/
vendor/friendsofphp/php-cs-fixer/tests/Tokenizer/
Would skip repository vendor/swoole/ide-helper
.phpunit.result.cache
4 changes: 2 additions & 2 deletions src/ContainerProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __call($name, $arguments)
return $this->container->{$name}(...$arguments);
}

public function get(string $id)
public function get($id)
{
return $this->container->get($id);
}
Expand All @@ -54,7 +54,7 @@ public function define(string $name, $definition)
return $this->container->define($name, $definition);
}

public function has(string $id)
public function has($id): bool
{
return $this->container->has($id);
}
Expand Down

0 comments on commit e493ce4

Please sign in to comment.