Debian Codegraph @

lib/3rdParty/composer/web-token/jwt-library/Signature/Serializer/Serializer.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Jose\Component\Signature\Serializer;
6
7 use function array_key_exists;
8
9 abstract class Serializer implements JWSSerializer
10 {
11 /**
12 * @param array<string, mixed> $protectedHeader
13 */
14 protected function isPayloadEncoded(array $protectedHeader): bool
15 {
16 return ! array_key_exists('b64', $protectedHeader) || $protectedHeader['b64'] === true;
17 }
18 }