summaryrefslogtreecommitdiffstats
path: root/lib/private/user
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-03-13 13:19:29 +0100
committerLukas Reschke <lukas@owncloud.com>2015-03-13 14:01:24 +0100
commit38fec9b0959daa29647aa2b4c277f9a35cb00821 (patch)
treef41f25e8698e52efb1f2c886cc9dfaabbcdf1f3d /lib/private/user
parentd5e884d6295800d27e046289d713bc27242ecfbb (diff)
downloadnextcloud-server-38fec9b0959daa29647aa2b4c277f9a35cb00821.tar.gz
nextcloud-server-38fec9b0959daa29647aa2b4c277f9a35cb00821.zip
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...
Diffstat (limited to 'lib/private/user')
-rw-r--r--lib/private/user/manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/user/manager.php b/lib/private/user/manager.php
index 85abd001ca8..99619bcba3a 100644
--- a/lib/private/user/manager.php
+++ b/lib/private/user/manager.php
@@ -103,7 +103,7 @@ class Manager extends PublicEmitter implements IUserManager {
* get a user by user id
*
* @param string $uid
- * @return \OC\User\User
+ * @return \OC\User\User|null Either the user or null if the specified user does not exist
*/
public function get($uid) {
if (isset($this->cachedUsers[$uid])) { //check the cache first to prevent having to loop over the backends