Skip to content

Commit ddae16d

Browse files
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>
1 parent b0e6a10 commit ddae16d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

lib/private/AllConfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ public function deleteAppFromAllUsers($appName) {
401401
* Returns all user configs sorted by app of one user
402402
*
403403
* @param ?string $userId the user ID to get the app configs from
404+
* @psalm-return array<string, array<string, string>>
404405
* @return array[] - 2 dimensional array with the following structure:
405406
* [ $appId =>
406407
* [ $key => $value ]

lib/public/IConfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ public function getUserKeys($userId, $appName);
220220
* Get all user configs sorted by app of one user
221221
*
222222
* @param string $userId the userId of the user that we want to get all values from
223+
* @psalm-return array<string, array<string, string>>
223224
* @return array[] - 2 dimensional array with the following structure:
224225
* [ $appId =>
225226
* [ $key => $value ]

0 commit comments

Comments
 (0)