Skip to content

Commit

Permalink
Bump psr/container from 1.0.0 to 1.1.1
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Mar 10, 2021
1 parent 62929cc commit 7287a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/AppFramework/Utility/SimpleContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public function __construct() {
$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);
}
Expand Down

0 comments on commit 7287a15

Please sign in to comment.