Skip to content

Commit

Permalink
Merge pull request #384 from HubSpot/feature/updateForPhp8.1
Browse files Browse the repository at this point in the history
update Auth util for php 8
  • Loading branch information
ksvirkou-hubspot authored Jul 27, 2022
2 parents e335bf8 + 678e9bd commit 3cb3fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/OAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ class OAuth2
* @param array $scopesArray a set of scopes that your app will need access to
* @param array $optionalScopesArray a set of optional scopes that your app will need access to
*/
public static function getAuthUrl($clientId, $redirectURI, array $scopesArray = [], array $optionalScopesArray = []): string
public static function getAuthUrl(string $clientId, string $redirectURI, array $scopesArray = [], array $optionalScopesArray = []): string
{
return self::AUTHORIZE_URL.'?'.http_build_query([
'client_id' => $clientId,
'redirect_uri' => $redirectURI,
'scope' => implode(' ', $scopesArray),
'optional_scope' => implode(' ', $optionalScopesArray),
], null, '&', PHP_QUERY_RFC3986);
], '', '&', PHP_QUERY_RFC3986);
}
}

0 comments on commit 3cb3fa7

Please sign in to comment.