vendor/lcobucci/jwt/src/Token/InvalidTokenStructure.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Lcobucci\JWT\Token;
  4. use InvalidArgumentException;
  5. use Lcobucci\JWT\Exception;
  6. final class InvalidTokenStructure extends InvalidArgumentException implements Exception
  7. {
  8.     public static function missingOrNotEnoughSeparators(): self
  9.     {
  10.         return new self('The JWT string must have two dots');
  11.     }
  12.     public static function arrayExpected(string $part): self
  13.     {
  14.         return new self($part ' must be an array');
  15.     }
  16.     public static function dateIsNotParseable(string $value): self
  17.     {
  18.         return new self('Value is not in the allowed date format: ' $value);
  19.     }
  20. }