diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-03-08 20:06:10 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-03-10 19:44:09 +0100 |
commit | 7287a15acbb33fc05f79cdc5b64b9c876bd1f946 (patch) | |
tree | acbce691c1bf90f3eb634612b0930b88275a855b /lib/private/AppFramework | |
parent | 62929cc646134fbd409cfb4eacb7039d15763b96 (diff) | |
download | nextcloud-server-7287a15acbb33fc05f79cdc5b64b9c876bd1f946.tar.gz nextcloud-server-7287a15acbb33fc05f79cdc5b64b9c876bd1f946.zip |
Bump psr/container from 1.0.0 to 1.1.1
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/Utility/SimpleContainer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/Utility/SimpleContainer.php b/lib/private/AppFramework/Utility/SimpleContainer.php index 2aa5da116e6..84c4c3447a2 100644 --- a/lib/private/AppFramework/Utility/SimpleContainer.php +++ b/lib/private/AppFramework/Utility/SimpleContainer.php @@ -52,11 +52,11 @@ class SimpleContainer implements ArrayAccess, ContainerInterface, IContainer { $this->container = new Container(); } - public function get($id) { + public function get(string $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 return isset($this->container[$id]) || class_exists($id); } |