Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
scheb committed Feb 18, 2021
1 parent 58788b1 commit 51fcb5a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public function getUser(): UserInterface
if ($user instanceof UserInterface) {
return $user;
}

// This case should never happen as the Passport is only used with the authenticator-based security system and
// with that system there is no string-like user.
throw new RuntimeException('Failed to find User of type UserInterface');
}
}

0 comments on commit 51fcb5a

Please sign in to comment.