diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2022-01-24 09:42:26 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-01-24 11:16:44 +0100 |
commit | ddae16d480557198433729a8744635068c32862e (patch) | |
tree | f4c05476f4e387afcefe41efb8b1836aa600d572 | |
parent | b0e6a102639b4ed0439fe74b4ee0c363252d7223 (diff) | |
download | nextcloud-server-ddae16d480557198433729a8744635068c32862e.tar.gz nextcloud-server-ddae16d480557198433729a8744635068c32862e.zip |
Add specific psalm-return for getAllUserValues
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Co-authored-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | lib/private/AllConfig.php | 1 | ||||
-rw-r--r-- | lib/public/IConfig.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php index 7d32c1dbc6c..36eb0bbf6d9 100644 --- a/lib/private/AllConfig.php +++ b/lib/private/AllConfig.php @@ -401,6 +401,7 @@ class AllConfig implements \OCP\IConfig { * Returns all user configs sorted by app of one user * * @param ?string $userId the user ID to get the app configs from + * @psalm-return array<string, array<string, string>> * @return array[] - 2 dimensional array with the following structure: * [ $appId => * [ $key => $value ] diff --git a/lib/public/IConfig.php b/lib/public/IConfig.php index 79dd72ca205..0e7a7523218 100644 --- a/lib/public/IConfig.php +++ b/lib/public/IConfig.php @@ -220,6 +220,7 @@ interface IConfig { * Get all user configs sorted by app of one user * * @param string $userId the userId of the user that we want to get all values from + * @psalm-return array<string, array<string, string>> * @return array[] - 2 dimensional array with the following structure: * [ $appId => * [ $key => $value ] |