From 38fec9b0959daa29647aa2b4c277f9a35cb00821 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 13 Mar 2015 13:19:29 +0100 Subject: Can also be null If the user does not exist this returns null and can lead to nasty bugs since the IDE is not indicating this... --- lib/public/iusermanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/public') diff --git a/lib/public/iusermanager.php b/lib/public/iusermanager.php index 1691aee8e7d..e2079ef8cc2 100644 --- a/lib/public/iusermanager.php +++ b/lib/public/iusermanager.php @@ -53,7 +53,7 @@ interface IUserManager { * get a user by user id * * @param string $uid - * @return \OCP\IUser + * @return \OCP\IUser|null Either the user or null if the specified user does not exist */ public function get($uid); -- cgit v1.2.3