CoreFiles by mySites.guru
RegisteredClaimGiven.php24 lines, 587 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
a37a7539a6078a8edaaeaf1006efae07
sha1
b66ecb60880390a96a65295945eca00901cbe89b
sha256
b8686aa22d1bf088f5f270016531101c51468e0580cb609e18b848288d76f99a
<?php

namespace Lcobucci\JWT\Token;

use InvalidArgumentException;
use Lcobucci\JWT\Exception;

use function sprintf;

final class RegisteredClaimGiven extends InvalidArgumentException implements Exception
{
    const DEFAULT_MESSAGE = 'Builder#withClaim() is meant to be used for non-registered claims, '
                                  . 'check the documentation on how to set claim "%s"';

    /**
     * @param string $name
     *
     * @return self
     */
    public static function forClaim($name)
    {
        return new self(sprintf(self::DEFAULT_MESSAGE, $name));
    }
}

The same content is in 75 releases, Joomla 4.2.0-beta3 to 4.4.14. See them all, or every version of this file.