From e9ec00930def1ec1703801faa9e4ea0ea6be70e9 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Sat, 31 Aug 2024 21:39:06 -0100 Subject: [PATCH] fix psalm Signed-off-by: Maxence Lange --- lib/private/UserPreferences.php | 2 +- lib/public/UserPreferences/IUserPreferences.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/private/UserPreferences.php b/lib/private/UserPreferences.php index 34df58c090d68..6e4563955970b 100644 --- a/lib/private/UserPreferences.php +++ b/lib/private/UserPreferences.php @@ -245,7 +245,7 @@ function (string $key) use ($prefix): bool { * @param string $userId id of the user * @param string $key preference key * @param bool $lazy search within lazy loaded preferences - * @param int|null $typedAs enforce type for the returned values ({@see ValueType::STRING} and others) + * @param ValueType|null $typedAs enforce type for the returned values * * @return array [appId => value] * @since 31.0.0 diff --git a/lib/public/UserPreferences/IUserPreferences.php b/lib/public/UserPreferences/IUserPreferences.php index 757e6405c5b43..e877cb7a22e8c 100644 --- a/lib/public/UserPreferences/IUserPreferences.php +++ b/lib/public/UserPreferences/IUserPreferences.php @@ -121,7 +121,7 @@ public function getAllValues(string $userId, string $app, string $prefix = '', b * @param string $userId id of the user * @param string $key preference key * @param bool $lazy search within lazy loaded preferences - * @param int|null $typedAs enforce type for the returned values {@see self::VALUE_STRING} and others + * @param ValueType|null $typedAs enforce type for the returned values * * @return array [appId => value] * @since 31.0.0 @@ -136,7 +136,7 @@ public function searchValuesByApps(string $userId, string $key, bool $lazy = fal * * @param string $app id of the app * @param string $key preference key - * @param int|null $typedAs enforce type for the returned values {@see self::VALUE_STRING} and others + * @param ValueType|null $typedAs enforce type for the returned values * * @return array [userId => value] * @since 31.0.0