Browse Source

Clarify return values

This function returns `null` when no user is logged-in.
tags/v8.0.0alpha1
Lukas Reschke 9 years ago
parent
commit
a022e65285
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      lib/private/user/session.php
  2. 1
    1
      lib/public/iusersession.php

+ 1
- 1
lib/private/user/session.php 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) {

+ 1
- 1
lib/public/iusersession.php 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();


Loading…
Cancel
Save