CoreFiles by mySites.guru
Serializer.php18 lines, 414 bytes, from Joomla_5.2.6-Stable-Full_Package.zip
Raw History Compare with 5.2.5
md5
3b4814d5e9fad7a7e7189a49d82aa5af
sha1
14f5def9e14dc3b84df42ad160208cd6972ab45a
sha256
6c9122bbc6ec8b856588a5ed3a3a4706f71407eb2723e397994b6ed8ce27eaa5
<?php

declare(strict_types=1);

namespace Jose\Component\Signature\Serializer;

use function array_key_exists;

abstract class Serializer implements JWSSerializer
{
    /**
     * @param array<string, mixed> $protectedHeader
     */
    protected function isPayloadEncoded(array $protectedHeader): bool
    {
        return ! array_key_exists('b64', $protectedHeader) || $protectedHeader['b64'] === true;
    }
}

The same content is in 136 releases, Joomla 5.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.