From ba3744218399a370655f4f5ac3d3741bfe91187d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 1 Oct 2024 12:31:51 -0700 Subject: [PATCH] fix typos --- .../ImpersonatedServiceAccountCredentials.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Credentials/ImpersonatedServiceAccountCredentials.php b/src/Credentials/ImpersonatedServiceAccountCredentials.php index 9ba5cdb25..b147bb488 100644 --- a/src/Credentials/ImpersonatedServiceAccountCredentials.php +++ b/src/Credentials/ImpersonatedServiceAccountCredentials.php @@ -21,6 +21,7 @@ use Google\Auth\CacheTrait; use Google\Auth\CredentialsLoader; use Google\Auth\HttpHandler\HttpHandlerFactory; +use Google\Auth\FetchAuthTokenInterface; use Google\Auth\IamSignerTrait; use Google\Auth\SignBlobInterface; use GuzzleHttp\Psr7\Request; @@ -59,10 +60,10 @@ class ImpersonatedServiceAccountCredentials extends CredentialsLoader implements * @param string|array $jsonKey JSON credential file path or JSON array credentials { * JSON credentials as an associative array. * - * @type string $service_account_impersonation_url The URL to the service account - * @type string|FetchAuthTokenCredentials $source_credentials The source credentials to impersonate - * @type int $lifetime The lifetime of the impersonated credentials - * @type string[] $delegates The delegates to impersonate + * @type string $service_account_impersonation_url The URL to the service account + * @type string|FetchAuthTokenInterface $source_credentials The source credentials to impersonate + * @type int $lifetime The lifetime of the impersonated credentials + * @type string[] $delegates The delegates to impersonate * } */ public function __construct( @@ -96,7 +97,7 @@ public function __construct( $this->serviceAccountImpersonationUrl ); - $this->sourceCredentials = $jsonKey['source_credentials'] instanceof FetchAuthTokenCredentials + $this->sourceCredentials = $jsonKey['source_credentials'] instanceof FetchAuthTokenInterface ? $jsonKey['source_credentials'] : CredentialsLoader::makeCredentials($scope, $jsonKey['source_credentials']); }