Skip to content

Commit

Permalink
Merge pull request #26015 from nextcloud/dependabot/composer/psr/cont…
Browse files Browse the repository at this point in the history
…ainer-1.1.1

Bump psr/container from 1.0.0 to 1.1.1
  • Loading branch information
ChristophWurst authored Mar 11, 2021
2 parents 56b08c0 + 7287a15 commit 6db7731
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 6db7731

Please sign in to comment.