mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
fix(SimpleContainer): Adjust return type for PHPStan
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
e8d4d435ed
commit
5c47ce9b40
1 changed files with 1 additions and 4 deletions
|
|
@ -37,10 +37,7 @@ class SimpleContainer implements ArrayAccess, ContainerInterface, IContainer {
|
|||
/**
|
||||
* @template T
|
||||
* @param class-string<T>|string $id
|
||||
* @return T|mixed
|
||||
* @psalm-template S as class-string<T>|string
|
||||
* @psalm-param S $id
|
||||
* @psalm-return (S is class-string<T> ? T : mixed)
|
||||
* @return ($id is class-string<T> ? T : mixed)
|
||||
*/
|
||||
public function get(string $id): mixed {
|
||||
return $this->query($id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue