Skip to content

Commit

Permalink
fix: setId and id
Browse files Browse the repository at this point in the history
  • Loading branch information
lkm committed Feb 29, 2024
1 parent ec39368 commit 6762540
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/AuthServiceUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class AuthServiceUser implements UserInterface
{
protected string $userId = '';
protected string $id = '';
protected string $username = '';
protected array $roles = [];
protected ?string $email = null;
Expand Down Expand Up @@ -46,7 +46,7 @@ public function getThumbnail(): string

public function getId(): string
{
return $this->userId;
return $this->id;
}

public function getName(): string
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 6762540

Please sign in to comment.