diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-04-03 21:29:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 21:29:20 +0200 |
commit | 2d0f29f208a20a76fc52cc07dce05f36de8edbb6 (patch) | |
tree | 5100dda37ded0e6b7b5d95168e7c3db77817058c | |
parent | 4e8bbc4e341861ad1ddcf872c8e248fadb711861 (diff) | |
parent | e394f6a5b5cf3b52e6a40f5a0665d5103d8b3582 (diff) | |
download | nextcloud-server-2d0f29f208a20a76fc52cc07dce05f36de8edbb6.tar.gz nextcloud-server-2d0f29f208a20a76fc52cc07dce05f36de8edbb6.zip |
Merge pull request #20293 from nextcloud/fix/noid/BeforeUserLoggedInEvent-returntype
fixes the return type of BeforeUserLoggedInEvent
-rw-r--r-- | lib/public/User/Events/BeforeUserLoggedInEvent.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/User/Events/BeforeUserLoggedInEvent.php b/lib/public/User/Events/BeforeUserLoggedInEvent.php index c6eb3fbbf1b..dca5c16518b 100644 --- a/lib/public/User/Events/BeforeUserLoggedInEvent.php +++ b/lib/public/User/Events/BeforeUserLoggedInEvent.php @@ -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; } |