Skip to content

Commit 51155cb

Browse files
committed
Fix typo, change parameter $accesToken to $token
Fix parameter name in documentation example.
1 parent f4d4197 commit 51155cb

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
@@ -94,7 +94,7 @@ This handler must implement
9494
public function getUserBadgeFrom(string $accessToken): UserBadge
9595
{
9696
// e.g. query the "access token" database to search for this token
97-
$accessToken = $this->repository->findOneByValue($token);
97+
$accessToken = $this->repository->findOneByValue($accessToken);
9898
if (null === $accessToken || !$accessToken->isValid()) {
9999
throw new BadCredentialsException('Invalid credentials.');
100100
}

0 commit comments

Comments
 (0)