Skip to content

Commit ff2b5c8

Browse files
author
lacatoire
committed
Fix UserChecker doc: make $token nullable and optional in checkPostAuth()
1 parent 954e0a4 commit ff2b5c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/user_checkers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ displayed to the user::
4242
}
4343
}
4444

45-
public function checkPostAuth(UserInterface $user, TokenInterface $token): void
45+
public function checkPostAuth(UserInterface $user, ?TokenInterface $token = null): void
4646
{
4747
if (!$user instanceof AppUser) {
4848
return;

0 commit comments

Comments
 (0)