Skip to content

Commit

Permalink
[Security][AbstractToken] getUserIdentifier() must return a string
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiot authored and fabpot committed Aug 19, 2022
1 parent a2af174 commit 29856be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Authentication/Token/AbstractToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getRoleNames(): array

public function getUserIdentifier(): string
{
return $this->user->getUserIdentifier();
return $this->user ? $this->user->getUserIdentifier() : '';
}

/**
Expand Down

0 comments on commit 29856be

Please sign in to comment.