Correct Auth#getUser() type spec

Doc says it may be null.
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-03-02 11:29:01 +01:00 committed by Johannes Meyer
parent 32e958e4da
commit 874af33d81
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class Auth
/**
* Authenticated user
*
* @var User
* @var User|null
*/
private $user;
@ -189,7 +189,7 @@ class Auth
/**
* Returns the current user or null if no user is authenticated
*
* @return User
* @return User|null
*/
public function getUser()
{