]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixes the return type of BeforeUserLoggedInEvent 20293/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 3 Apr 2020 16:01:14 +0000 (18:01 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 3 Apr 2020 16:01:14 +0000 (18:01 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
lib/public/User/Events/BeforeUserLoggedInEvent.php

index c6eb3fbbf1b837f23b2c1a451f77d9806547e690..dca5c16518bea98e62e8648cfe5051319e838b43 100644 (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;
        }