diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-12-19 14:14:38 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-12-19 14:17:40 +0100 |
commit | a022e652857870893348de7aa146e7e8d946aaec (patch) | |
tree | 61bb37785be01329d7d32ae13eb57923e5caeb15 | |
parent | 2d647973202151c12a3bd5f0396657212b1f7b7f (diff) | |
download | nextcloud-server-a022e652857870893348de7aa146e7e8d946aaec.tar.gz nextcloud-server-a022e652857870893348de7aa146e7e8d946aaec.zip |
Clarify return values
This function returns `null` when no user is logged-in.
-rw-r--r-- | lib/private/user/session.php | 2 | ||||
-rw-r--r-- | lib/public/iusersession.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/user/session.php b/lib/private/user/session.php index 53662d00952..a7bd65cc2ca 100644 --- a/lib/private/user/session.php +++ b/lib/private/user/session.php @@ -121,7 +121,7 @@ class Session implements IUserSession, Emitter { /** * get the current active user * - * @return \OC\User\User + * @return \OCP\IUser|null Current user, otherwise null */ public function getUser() { if ($this->activeUser) { diff --git a/lib/public/iusersession.php b/lib/public/iusersession.php index 4c5b4d1ba51..52752758ee8 100644 --- a/lib/public/iusersession.php +++ b/lib/public/iusersession.php @@ -61,7 +61,7 @@ interface IUserSession { /** * get the current active user * - * @return \OCP\IUser + * @return \OCP\IUser|null Current user, otherwise null */ public function getUser(); |