CoreFiles by mySites.guru
InvalidTokenStructure.php35 lines, 747 bytes, from Joomla_4.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta2
md5
5fc88c988735a5268cbd0c1f9a0d8ac1
sha1
853bd190cb112837b4ecbdcf9c6fd7acff78207c
sha256
527903128999b12655f734dd43749de66a28d6d2392766082b632863f37d7f3a
<?php

namespace Lcobucci\JWT\Token;

use InvalidArgumentException;
use Lcobucci\JWT\Exception;

final class InvalidTokenStructure extends InvalidArgumentException implements Exception
{
    /** @return self */
    public static function missingOrNotEnoughSeparators()
    {
        return new self('The JWT string must have two dots');
    }

    /**
     * @param string $part
     *
     * @return self
     */
    public static function arrayExpected($part)
    {
        return new self($part . ' must be an array');
    }

    /**
     * @param string $value
     *
     * @return self
     */
    public static function dateIsNotParseable($value)
    {
        return new self('Value is not in the allowed date format: ' . $value);
    }
}

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.