Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Oct 1, 2024
1 parent 203722d commit ba37442
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Credentials/ImpersonatedServiceAccountCredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -59,10 +60,10 @@ class ImpersonatedServiceAccountCredentials extends CredentialsLoader implements
* @param string|array<mixed> $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(
Expand Down Expand Up @@ -96,7 +97,7 @@ public function __construct(
$this->serviceAccountImpersonationUrl
);

$this->sourceCredentials = $jsonKey['source_credentials'] instanceof FetchAuthTokenCredentials
$this->sourceCredentials = $jsonKey['source_credentials'] instanceof FetchAuthTokenInterface

Check failure on line 100 in src/Credentials/ImpersonatedServiceAccountCredentials.php

View workflow job for this annotation

GitHub Actions / PHPStan Static Analysis / PHPStan Static Analysis

Property Google\Auth\Credentials\ImpersonatedServiceAccountCredentials::$sourceCredentials (Google\Auth\Credentials\UserRefreshCredentials) does not accept Google\Auth\FetchAuthTokenInterface.
? $jsonKey['source_credentials']
: CredentialsLoader::makeCredentials($scope, $jsonKey['source_credentials']);
}
Expand Down

0 comments on commit ba37442

Please sign in to comment.