Clarify return values
This function returns `null` when no user is logged-in.
This commit is contained in:
parent
2d64797320
commit
a022e65285
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue