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:
commit
6db7731742
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue