Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Traits/OAuth2/ClientCredentialsGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ trait ClientCredentialsGrant
*
* @param array<string> $scopes
* @param callable(TRequest): (void)|null $requestModifier
*
* @return ($returnResponse is true ? \Saloon\Http\Response : \Saloon\Contracts\OAuthAuthenticator)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for Fully Qualified Domain Name as it's already used bellow in the signature:

Suggested change
* @return ($returnResponse is true ? \Saloon\Http\Response : \Saloon\Contracts\OAuthAuthenticator)
* @return ($returnResponse is true ? Response : OAuthAuthenticator)

*/
public function getAccessToken(array $scopes = [], string $scopeSeparator = ' ', bool $returnResponse = false, ?callable $requestModifier = null): OAuthAuthenticator|Response
{
Expand Down