If the user does not exist this returns null and can lead to nasty bugs since the IDE is not indicating this...
* 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
* 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);