X

Create New Item

File Folder

X

Search Results

File "FileCouldNotBeRead.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/lcobucci/jwt/src/Signer/Key/FileCouldNotBeRead.php
File size: 467 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?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
{
    public static function onPath(string $path, ?Throwable $cause = null): self
    {
        return new self(
            'The path "' . $path . '" does not contain a valid key file',
            0,
            $cause
        );
    }
}