Bump psr/container from 1.0.0 to 1.1.1

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2021-03-08 20:06:10 +01:00
parent 62929cc646
commit 7287a15acb
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
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);
} }