aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-01-24 09:42:26 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-01-24 11:16:44 +0100
commitddae16d480557198433729a8744635068c32862e (patch)
treef4c05476f4e387afcefe41efb8b1836aa600d572
parentb0e6a102639b4ed0439fe74b4ee0c363252d7223 (diff)
downloadnextcloud-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.php1
-rw-r--r--lib/public/IConfig.php1
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 ]