Skip to content

Commit 5686f0e

Browse files
committed
Update JwksDecorator
1 parent 88bfc98 commit 5686f0e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/Jwks/JwksDecorator.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ public function jsonSerialize(): array
2929
{
3030
// @phpstan-ignore return.type (So I don't have to override JWK::jsonSerialize which actually returns OK)
3131
return [
32-
ClaimsEnum::Keys->value => array_map(
33-
fn(JWK $jwk): array => $jwk->jsonSerialize(),
34-
$this->jwks->all(),
32+
ClaimsEnum::Keys->value => array_values(
33+
array_map(
34+
fn(JWK $jwk): array => $jwk->jsonSerialize(),
35+
$this->jwks->all(),
36+
),
3537
),
3638
];
3739
}

0 commit comments

Comments
 (0)