8000 minor #13248 Update return statement for getUser (qdequippe) · symfony/symfony-docs@903824a · GitHub
[go: up one dir, main page]

Skip to content

Commit 903824a

Browse files
committed
minor #13248 Update return statement for getUser (qdequippe)
This PR was submitted for the 4.4 branch but it was merged into the 3.4 branch instead (closes #13248). Discussion ---------- Update return statement for getUser `getUser` function excepts null or UserInterface to be returned. Maybe only for DX. Commits ------- 3420684 Update return statement for getUser …
2 parents 6af2ca1 + 3420684 commit 903824a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/guard_authentication.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ This requires you to implement several methods::
195195
{
196196
if (null === $credentials) {
197197
// The token header was empty, authentication fails with 401
198-
return;
198+
return null;
199199
}
200200

201201
// if a User is returned, checkCredentials() is called

0 commit comments

Comments
 (0)
0