Skip to content

Commit c8e56db

Browse files
committed
Merge branch '8.0' into 8.1
* 8.0: Fix UserChecker doc: make $token nullable and optional in checkPostAuth()
2 parents 837336c + ca29a3f commit c8e56db

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)