fixes the return type of BeforeUserLoggedInEvent

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2020-04-03 18:01:14 +02:00
parent 4e8bbc4e34
commit e394f6a5b5
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -34,7 +34,7 @@ use OCP\IUser;
*/
class BeforeUserLoggedInEvent extends Event {
/** @var IUser */
/** @var string */
private $username;
/** @var string */
@ -50,9 +50,11 @@ class BeforeUserLoggedInEvent extends Event {
}
/**
* returns the login name, which must not necessarily match to a user ID
*
* @since 18.0.0
*/
public function getUsername(): IUser {
public function getUsername(): string {
return $this->username;
}