Skip to content

Commit

Permalink
fix: casing of GET for PSR compat (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Oct 5, 2022
1 parent 018dfc4 commit 60b52b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CachedKeySet.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private function keyIdExists(string $keyId): bool
if ($this->rateLimitExceeded()) {
return false;
}
$request = $this->httpFactory->createRequest('get', $this->jwksUri);
$request = $this->httpFactory->createRequest('GET', $this->jwksUri);
$jwksResponse = $this->httpClient->sendRequest($request);
$jwks = (string) $jwksResponse->getBody();
$this->keySet = JWK::parseKeySet(json_decode($jwks, true), $this->defaultAlg);
Expand Down
2 changes: 1 addition & 1 deletion tests/CachedKeySetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ private function getMockHttpFactory(int $timesCalled = 1)
{
$request = $this->prophesize('Psr\Http\Message\RequestInterface');
$factory = $this->prophesize(RequestFactoryInterface::class);
$factory->createRequest('get', $this->testJwksUri)
$factory->createRequest('GET', $this->testJwksUri)
->shouldBeCalledTimes($timesCalled)
->willReturn($request->reveal());

Expand Down

0 comments on commit 60b52b7

Please sign in to comment.