Skip to content

Commit da2afed

Browse files
fix: rename overloaded responseContentType to internalResponseContentType
1 parent 6ba58e5 commit da2afed

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/OpenIDConnectClient.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ class OpenIDConnectClient extends \Jumbojett\OpenIDConnectClient
2121
protected ?JweDecryptInterface $jweDecrypter;
2222
protected ?OpenIDConfiguration $openIDConfiguration;
2323

24+
/**
25+
* @var string|null Content type from the server
26+
*/
27+
private ?string $internalResponseContentType = null;
28+
2429
public function __construct(
2530
?string $providerUrl = null,
2631
?string $clientId = null,
@@ -190,7 +195,7 @@ protected function fetchURL(string $url, string $post_body = null, array $header
190195
}
191196

192197
$this->responseCode = $request->status();
193-
$this->responseContentType = $request->header('Content-Type');
198+
$this->internalResponseContentType = $request->header('Content-Type');
194199

195200
if ($request->failed()) {
196201
throw new OpenIDConnectClientException(
@@ -218,7 +223,7 @@ public function getResponseCode(): int
218223
*/
219224
public function getResponseContentType(): ?string
220225
{
221-
return $this->responseContentType;
226+
return $this->internalResponseContentType;
222227
}
223228

224229
public function setTlsVerify(bool|string $tlsVerify): void

0 commit comments

Comments
 (0)