Merge pull request #26015 from nextcloud/dependabot/composer/psr/container-1.1.1

Bump psr/container from 1.0.0 to 1.1.1
This commit is contained in:
Christoph Wurst 2021-03-11 08:50:32 +01:00 committed by GitHub
commit 6db7731742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -52,11 +52,11 @@ class SimpleContainer implements ArrayAccess, ContainerInterface, IContainer {
$this->container = new Container(); $this->container = new Container();
} }
public function get($id) { public function get(string $id) {
return $this->query($id); return $this->query($id);
} }
public function has($id): bool { public function has(string $id): bool {
// If a service is no registered but is an existing class, we can probably load it // If a service is no registered but is an existing class, we can probably load it
return isset($this->container[$id]) || class_exists($id); return isset($this->container[$id]) || class_exists($id);
} }