Merge pull request #20293 from nextcloud/fix/noid/BeforeUserLoggedInEvent-returntype

fixes the return type of BeforeUserLoggedInEvent
This commit is contained in:
blizzz 2020-04-03 21:29:20 +02:00 committed by GitHub
commit 2d0f29f208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

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;
}