Skip to content

Commit

Permalink
fix: Update return types.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 1, 2022
1 parent 17f12de commit 9bf9133
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Security/Core/User/EuLoginUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function getProxyGrantingProtocol(): ?string
return $this->user->getAttribute('proxyGrantingProtocol');
}

public function getRoles()
public function getRoles(): array
{
$default = ['ROLE_CAS_AUTHENTICATED'];

Expand Down Expand Up @@ -256,7 +256,7 @@ public function getUid(): ?string
return $this->user->getAttribute('uid');
}

public function getUserIdentifier()
public function getUserIdentifier(): string
{
return $this->user->getUserIdentifier();
}
Expand All @@ -282,7 +282,7 @@ public function getUsername()
return $this->getUserIdentifier();
}

public function isEqualTo(UserInterface $user)
public function isEqualTo(UserInterface $user): bool
{
return $this->user->isEqualTo($user);
}
Expand Down

0 comments on commit 9bf9133

Please sign in to comment.