]> source.dussan.org Git - nextcloud-server.git/commitdiff
Bump psr/container from 1.0.0 to 1.1.1 26015/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 8 Mar 2021 19:06:10 +0000 (20:06 +0100)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Wed, 10 Mar 2021 18:44:09 +0000 (19:44 +0100)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/AppFramework/Utility/SimpleContainer.php

index 2aa5da116e6878e033a495b05edd3b64ddef8f08..84c4c3447a228ddaedc049126c2b4b1a3441a65c 100644 (file)
@@ -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);
        }