Skip to content

Commit

Permalink
Merge pull request #164 from HubSpot/feature/FixOAuthUtilOn8.1
Browse files Browse the repository at this point in the history
fix OAuth Util
  • Loading branch information
ksvirkou-hubspot authored Sep 1, 2022
2 parents 514d6fb + ede074f commit dc2a14e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Utils/OAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ class OAuth2
*
* @return string
*/
public static function getAuthUrl($clientId, $redirectURI, array $scopesArray = [], array $optionalScopesArray = [])
public static function getAuthUrl(string $clientId, string $redirectURI, array $scopesArray = [], array $optionalScopesArray = [])
{
return static::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 dc2a14e

Please sign in to comment.