Skip to content

Commit f9cb39c

Browse files
committed
minor #10552 Supports() must return a boolean (darrylhein)
This PR was submitted for the 4.1 branch but it was merged into the 3.4 branch instead (closes #10552). Discussion ---------- Supports() must return a boolean The code docs say "null" when it should be false. Commits ------- 4052f6a supports() must return a boolean
2 parents 19b8f82 + 4052f6a commit f9cb39c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/guard_authentication.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ are two possible fixes:
590590
public function supports(Request $request)
591591
{
592592
+ // if there is already an authenticated user (likely due to the session)
593-
+ // then return null and skip authentication: there is no need.
593+
+ // then return false and skip authentication: there is no need.
594594
+ if ($this->security->getUser()) {
595595
+ return false;
596596
+ }

0 commit comments

Comments
 (0)