Skip to content

Commit 3dd9347

Browse files
author
Vincent Chalnot
committed
Fixing issue with error reporting
1 parent 01e5046 commit 3dd9347

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Client/OAuthHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ public function getToken(): OAuthTokenInterface
7171
throw OAuthAuthenticationException::createFromTokenResponse($this->settings, $response);
7272
}
7373

74-
$response = json_decode($content, true);
74+
$data = json_decode($content, true);
7575
if (JSON_ERROR_NONE !== json_last_error()) {
7676
throw OAuthAuthenticationException::createFromTokenResponse($this->settings, $response);
7777
}
78-
$this->token = OAuthToken::createFromResponse($response);
78+
$this->token = OAuthToken::createFromResponse($data);
7979
}
8080

8181
return $this->token;

0 commit comments

Comments
 (0)