From bdce5921f6d21b8fc583aac3d2e36e8f6ce9a98a Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 2 Sep 2024 12:25:28 +0200 Subject: [PATCH] chore(IConfig): `getUsersForUserValue` is returning a list It is returning a list of strings so adjust the return typing to reflect this (`list` instead of `array`). Signed-off-by: Ferdinand Thiessen --- lib/private/AllConfig.php | 4 ++-- lib/public/IConfig.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php index cc3a3ad90d45e..263b528313388 100644 --- a/lib/private/AllConfig.php +++ b/lib/private/AllConfig.php @@ -462,7 +462,7 @@ public function getUserValueForUsers($appName, $key, $userIds) { * @param string $appName the app to get the user for * @param string $key the key to get the user for * @param string $value the value to get the user for - * @return array of user IDs + * @return list of user IDs */ public function getUsersForUserValue($appName, $key, $value) { // TODO - FIXME @@ -496,7 +496,7 @@ public function getUsersForUserValue($appName, $key, $value) { * @param string $appName the app to get the user for * @param string $key the key to get the user for * @param string $value the value to get the user for - * @return array of user IDs + * @return list of user IDs */ public function getUsersForUserValueCaseInsensitive($appName, $key, $value) { // TODO - FIXME diff --git a/lib/public/IConfig.php b/lib/public/IConfig.php index b322267736e7b..3bc64c5e13337 100644 --- a/lib/public/IConfig.php +++ b/lib/public/IConfig.php @@ -245,7 +245,8 @@ public function deleteAppFromAllUsers($appName); * @param string $appName the app to get the user for * @param string $key the key to get the user for * @param string $value the value to get the user for - * @return array of user IDs + * @return list of user IDs + * @since 31.0.0 return type of `list` * @since 8.0.0 */ public function getUsersForUserValue($appName, $key, $value);