Browse Source

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>
Côme Chilliet 2 years ago
parent
commit
ddae16d480
2 changed files with 2 additions and 0 deletions
  1. 1 0
      lib/private/AllConfig.php
  2. 1 0
      lib/public/IConfig.php

+ 1 - 0
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 ]

+ 1 - 0
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 ]