Skip to content

Commit

Permalink
Fix phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn-v committed Nov 30, 2023
1 parent 2905ff2 commit dc68c70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OAuth/ResourceOwner/TelegramResourceOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getAccessToken(Request $request, $redirectUri, array $extraParam
throw new AuthenticationException('Telegram auth data check failed');
}

return $token;
return ['access_token' => $token];
}

public function getUserInformation(array $accessToken, array $extraParameters = [])
Expand Down
2 changes: 1 addition & 1 deletion tests/OAuth/ResourceOwner/TelegramResourceOwnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function testGetAccessToken(string $response = '', string $contentType =
$request = new Request(['code' => $token]);

$this->assertEquals(
$token,
['access_token' => $token],
$resourceOwner->getAccessToken($request, 'http://redirect.to/')
);
}
Expand Down

0 comments on commit dc68c70

Please sign in to comment.