Skip to content
Snippets Groups Projects
Commit f668ed25 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #14874 from owncloud/correct-typehint

Can also be null
parents d5e884d6 38fec9b0
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,7 @@ class Manager extends PublicEmitter implements IUserManager { ...@@ -103,7 +103,7 @@ class Manager extends PublicEmitter implements IUserManager {
* get a user by user id * get a user by user id
* *
* @param string $uid * @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) { public function get($uid) {
if (isset($this->cachedUsers[$uid])) { //check the cache first to prevent having to loop over the backends if (isset($this->cachedUsers[$uid])) { //check the cache first to prevent having to loop over the backends
......
...@@ -53,7 +53,7 @@ interface IUserManager { ...@@ -53,7 +53,7 @@ interface IUserManager {
* get a user by user id * get a user by user id
* *
* @param string $uid * @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); public function get($uid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment