Skip to content

Commit 8039c76

Browse files
authored
Add conditional return type to ClientCredentialsGrant getAccessToken (#516)
1 parent 3d88642 commit 8039c76

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Traits/OAuth2/ClientCredentialsGrant.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ trait ClientCredentialsGrant
2727
*
2828
* @param array<string> $scopes
2929
* @param callable(TRequest): (void)|null $requestModifier
30+
*
31+
* @return ($returnResponse is true ? \Saloon\Http\Response : \Saloon\Contracts\OAuthAuthenticator)
3032
*/
3133
public function getAccessToken(array $scopes = [], string $scopeSeparator = ' ', bool $returnResponse = false, ?callable $requestModifier = null): OAuthAuthenticator|Response
3234
{

0 commit comments

Comments
 (0)