--- public_html/lists/admin/PHPMailer/class.phpmaileroauthgoogle.php Fri Jan 16 08:56:28 1970 +++ public_html/lists/admin/PHPMailer/class.phpmaileroauthgoogle.php Fri Jan 16 08:56:28 1970 @@ -51,10 +51,10 @@ private function getProvider() { - return new League\OAuth2\Client\Provider\Google([ + return new League\OAuth2\Client\Provider\Google(Array( 'clientId' => $this->oauthClientId, 'clientSecret' => $this->oauthClientSecret - ]); + )); } private function getGrant() @@ -66,7 +66,7 @@ { $provider = $this->getProvider(); $grant = $this->getGrant(); - return $provider->getAccessToken($grant, ['refresh_token' => $this->oauthRefreshToken]); + return $provider->getAccessToken($grant, Array('refresh_token' => $this->oauthRefreshToken)); } public function getOauth64() --- public_html/lists/admin/PHPMailer/get_oauth_token.php Fri Jan 16 08:56:28 1970 +++ public_html/lists/admin/PHPMailer/get_oauth_token.php Fri Jan 16 08:56:28 1970 @@ -80,24 +80,24 @@ $params = array_merge( parent::getAuthorizationParameters($options), - array_filter([ + array_filter(Array( 'hd' => $this->hostedDomain, 'access_type' => $this->accessType, - 'scope' => $this->scope, + 'scope' => $this->scope, // if the user is logged in with more than one account ask which one to use for the login! 'authuser' => '-1' - ]) + )) ); return $params; } protected function getDefaultScopes() { - return [ + return Array( 'email', 'openid', 'profile', - ]; + ); } protected function getScopeSeparator()