Skip to content

Commit

Permalink
Fix PHPstan annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Hectorhammett committed Jun 6, 2024
1 parent 98fce26 commit 126d7ec
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/Credentials/ExternalAccountCredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ class ExternalAccountCredentials implements
private ?string $workforcePoolUserProject;
private ?string $projectId;
private string $universeDomain;
private array $jsonKey; // We will need to take a look into this. PR draft.

/**
* Used to calculate the Cache Key for caching
*
* @var array<mixed>
*/
private array $jsonKey;

/**
* @param string|string[] $scope The scope of the access request, expressed either as an array
Expand Down Expand Up @@ -363,7 +369,12 @@ private function isWorkforcePool(): bool
return preg_match($regex, $this->auth->getAudience()) === 1;
}

private function flattenJsonKey($arr): array
/**
* @param array<mixed> $arr
*
* @return array<string>
*/
private function flattenJsonKey(array $arr): array
{
$result = [];

Expand Down

0 comments on commit 126d7ec

Please sign in to comment.