From 678e9bdc9a76056df04f6e4a2e57e7b6186f6443 Mon Sep 17 00:00:00 2001 From: ksvirkou Date: Wed, 27 Jul 2022 14:23:40 +0300 Subject: [PATCH] update Auth util --- src/Utils/OAuth2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils/OAuth2.php b/src/Utils/OAuth2.php index 486700bf..6f0ec0ec 100644 --- a/src/Utils/OAuth2.php +++ b/src/Utils/OAuth2.php @@ -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); } }