From 6762540065a31e90ee4fc6d03a9f0a3f328ee3dc Mon Sep 17 00:00:00 2001 From: Lasse Mammen Date: Thu, 29 Feb 2024 12:26:20 +0000 Subject: [PATCH] fix: setId and id Part-of: --- src/AuthServiceUser.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AuthServiceUser.php b/src/AuthServiceUser.php index 0e62866..f5c98f9 100644 --- a/src/AuthServiceUser.php +++ b/src/AuthServiceUser.php @@ -7,7 +7,7 @@ class AuthServiceUser implements UserInterface { - protected string $userId = ''; + protected string $id = ''; protected string $username = ''; protected array $roles = []; protected ?string $email = null; @@ -46,7 +46,7 @@ public function getThumbnail(): string public function getId(): string { - return $this->userId; + return $this->id; } public function getName(): string @@ -108,9 +108,9 @@ public function eraseCredentials(): void { } - public function setUserId(string $userId): static + public function setId(string $id): static { - $this->userId = $userId; + $this->id = $id; return $this; }