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>
pull/30739/head
Côme Chilliet 4 years ago committed by Côme Chilliet
parent b0e6a10263
commit ddae16d480
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 1
      lib/private/AllConfig.php
  2. 1
      lib/public/IConfig.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 ]

@ -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 ]

Loading…
Cancel
Save