diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-16 14:10:05 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-08-16 14:10:05 +0200 |
commit | 8004aa77212eed6dd1142c713275a4e0c5d0c40e (patch) | |
tree | f9d0b1589dd354ddbe55f7738f6df95c75fae29f /lib/public/IUserManager.php | |
parent | 604c1752845df068a7dd5d168abfbfc04065ac3f (diff) | |
download | nextcloud-server-8004aa77212eed6dd1142c713275a4e0c5d0c40e.tar.gz nextcloud-server-8004aa77212eed6dd1142c713275a4e0c5d0c40e.zip |
Make DisplayNameCache return null if user doesn't exists
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/public/IUserManager.php')
-rw-r--r-- | lib/public/IUserManager.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/public/IUserManager.php b/lib/public/IUserManager.php index c107b2c5025..af0d5f08809 100644 --- a/lib/public/IUserManager.php +++ b/lib/public/IUserManager.php @@ -87,13 +87,11 @@ interface IUserManager { /** * Get the display name of a user * - * Note that this will return the uid if the user is not found instead of throwing an exception - * * @param string $uid - * @return string + * @return string|null * @since 25.0.0 */ - public function getDisplayName(string $uid): string; + public function getDisplayName(string $uid): ?string; /** * check if a user exists |