summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/user/session.php2
-rw-r--r--lib/public/iusersession.php2
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();