This commit is contained in:
2025-04-22 23:42:07 +02:00
parent 7b05e52d95
commit 0f07e7eabf
15 changed files with 51 additions and 43 deletions

View File

@@ -76,13 +76,16 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
*/
public function getUserIdentifier(): string
{
return $this->email;
/** @var non-empty-string $identifier */
$identifier = $this->email;
return $identifier;
}
/**
* @see UserInterface
*
* @return non-empty-list<string>
* @return non-empty-array<int<0, max>, string>
*/
public function getRoles(): array
{