Skip to content

Commit

Permalink
fix Oauth Util
Browse files Browse the repository at this point in the history
  • Loading branch information
ksvirkou-hubspot committed Sep 1, 2022
1 parent 514d6fb commit ede074f
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 ede074f

Please sign in to comment.