fix typing of oauth2client methods

This commit is contained in:
Julien Fastré 2022-06-08 12:56:04 +02:00
parent 168aff81f4
commit fbf1c4365d

View File

@ -44,9 +44,7 @@ class RemoteCalendarConnectAzureController
return $this->clientRegistry
->getClient('azure') // key used in config/packages/knpu_oauth2_client.yaml
->redirect([
'https://graph.microsoft.com/.default', 'offline_access',
]);
->redirect(['https://graph.microsoft.com/.default', 'offline_access'], []);
}
/**
@ -59,7 +57,7 @@ class RemoteCalendarConnectAzureController
try {
/** @var AccessToken $token */
$token = $client->getAccessToken();
$token = $client->getAccessToken([]);
$this->MSGraphTokenStorage->setToken($token);
} catch (IdentityProviderException $e) {