Skip to content

Commit

Permalink
Fix incorrect variable in CredentailsWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
saranshdhingra committed Feb 5, 2024
1 parent d64aa95 commit 88d871c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CredentialsWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ public function getQuotaProject()
public function getProjectId(callable $httpHandler = null): ?string
{
// Ensure that FetchAuthTokenCache does not throw an exception
if ($credential instanceof FetchAuthTokenCache
&& !$credential->getFetcher() instanceof ProjectIdProviderInterface) {
if ($this->credentialsFetcher instanceof FetchAuthTokenCache
&& !$this->credentialsFetcher->getFetcher() instanceof ProjectIdProviderInterface) {
return null;
}

Expand Down

0 comments on commit 88d871c

Please sign in to comment.