Merge pull request #14874 from owncloud/correct-typehint

Can also be null
This commit is contained in:
Lukas Reschke 2015-03-13 14:36:00 +01:00
commit f668ed25fe
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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);