Skip to content

Commit 4827a75

Browse files
Update security/access_token.rst
Co-authored-by: Vincent <vincentchalamon@protonmail.com>
1 parent 71904c8 commit 4827a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/access_token.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ This handler must implement
9595
{
9696
// e.g. query the "access token" database to search for this token
9797
$accessToken = $this->repository->findOneByValue($token);
98-
if ($accessToken === null || !$accessToken->isValid()) {
98+
if (null === $accessToken || !$accessToken->isValid()) {
9999
throw new BadCredentialsException('Invalid credentials.');
100100
}
101101

0 commit comments

Comments
 (0)