Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add psalm template annotation to container get method
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and CarlSchwan committed Jan 14, 2022
commit 26fbd2ed1f24c602ee235c0d7657edb4037696a8
5 changes: 5 additions & 0 deletions lib/private/AppFramework/Utility/SimpleContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public function __construct() {
$this->container = new Container();
}

/**
* @template T
* @param class-string<T> $id
* @return T
*/
public function get(string $id) {
return $this->query($id);
}
Expand Down