| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Facile\JoseVerifier\JWK; |
| 6 | |
| 7 | abstract class AbstractJwksProvider implements JwksProviderInterface |
| 8 | { |
| 9 | /** |
| 10 | * @param mixed $data |
| 11 | * |
| 12 | * @psalm-assert-if-true array{keys: list<array<string, mixed>>} $data |
| 13 | */ |
| 14 | protected function isJWKSet($data): bool |
| 15 | { |
| 16 | return is_array($data) && array_key_exists('keys', $data) && is_array($data['keys']); |
| 17 | } |
| 18 | } |