Clarify return values

This function returns `null` when no user is logged-in.
This commit is contained in:
Lukas Reschke 2014-12-19 14:14:38 +01:00
parent 2d64797320
commit a022e65285
2 changed files with 2 additions and 2 deletions

View File

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

View File

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