Skip to content

Commit 0d94fd9

Browse files
committed
Deprecate empty user identifier
1 parent 3073208 commit 0d94fd9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66

77
* Add `$token` argument to `UserCheckerInterface::checkPostAuth()`
88
* Deprecate argument `$secret` of `RememberMeToken`
9+
* Deprecate returning an empty string in `UserInterface::getUserIdentifier()`
910

1011
7.0
1112
---

User/UserInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public function eraseCredentials(): void;
5656

5757
/**
5858
* Returns the identifier for this user (e.g. username or email address).
59+
*
60+
* @return non-empty-string
5961
*/
6062
public function getUserIdentifier(): string;
6163
}

0 commit comments

Comments
 (0)