Skip to content

Commit 4052f6a

Browse files
darrylheinjaviereguiluz
authored andcommitted
supports() must return a boolean
1 parent 19b8f82 commit 4052f6a

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
@@ -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)