Skip to content

Commit 2d0f29f

Browse files
authored
Merge pull request #20293 from nextcloud/fix/noid/BeforeUserLoggedInEvent-returntype
fixes the return type of BeforeUserLoggedInEvent
2 parents 4e8bbc4 + e394f6a commit 2d0f29f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/public/User/Events/BeforeUserLoggedInEvent.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535
class BeforeUserLoggedInEvent extends Event {
3636

37-
/** @var IUser */
37+
/** @var string */
3838
private $username;
3939

4040
/** @var string */
@@ -50,9 +50,11 @@ public function __construct(string $username, string $password) {
5050
}
5151

5252
/**
53+
* returns the login name, which must not necessarily match to a user ID
54+
*
5355
* @since 18.0.0
5456
*/
55-
public function getUsername(): IUser {
57+
public function getUsername(): string {
5658
return $this->username;
5759
}
5860

0 commit comments

Comments
 (0)