Skip to content

Commit 60b52b7

Browse files
authoredOct 5, 2022
fix: casing of GET for PSR compat (#451)
1 parent 018dfc4 commit 60b52b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/CachedKeySet.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function keyIdExists(string $keyId): bool
146146
if ($this->rateLimitExceeded()) {
147147
return false;
148148
}
149-
$request = $this->httpFactory->createRequest('get', $this->jwksUri);
149+
$request = $this->httpFactory->createRequest('GET', $this->jwksUri);
150150
$jwksResponse = $this->httpClient->sendRequest($request);
151151
$jwks = (string) $jwksResponse->getBody();
152152
$this->keySet = JWK::parseKeySet(json_decode($jwks, true), $this->defaultAlg);

‎tests/CachedKeySetTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ private function getMockHttpFactory(int $timesCalled = 1)
325325
{
326326
$request = $this->prophesize('Psr\Http\Message\RequestInterface');
327327
$factory = $this->prophesize(RequestFactoryInterface::class);
328-
$factory->createRequest('get', $this->testJwksUri)
328+
$factory->createRequest('GET', $this->testJwksUri)
329329
->shouldBeCalledTimes($timesCalled)
330330
->willReturn($request->reveal());
331331

0 commit comments

Comments
 (0)
Please sign in to comment.