Files
kulakpos_web/vendor/lcobucci/jwt/src/Signer/Key/FileCouldNotBeRead.php

21 lines
513 B
PHP
Raw Normal View History

2026-03-30 14:54:57 +07:00
<?php
declare(strict_types=1);
namespace Lcobucci\JWT\Signer\Key;
use InvalidArgumentException;
use Lcobucci\JWT\Exception;
use Throwable;
final class FileCouldNotBeRead extends InvalidArgumentException implements Exception
{
/** @param non-empty-string $path */
public static function onPath(string $path, ?Throwable $cause = null): self
{
return new self(
message: 'The path "' . $path . '" does not contain a valid key file',
previous: $cause,
);
}
}