• File: CannotEncodeContent.php
  • Full Path: /var/www/amparoapi/vendor/lcobucci/jwt/src/Encoding/CannotEncodeContent.php
  • Date Modified: 10/09/2021 2:38 AM
  • File size: 370 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
declare(strict_types=1);

namespace Lcobucci\JWT\Encoding;

use JsonException;
use Lcobucci\JWT\Exception;
use RuntimeException;

final class CannotEncodeContent extends RuntimeException implements Exception
{
    public static function jsonIssues(JsonException $previous): self
    {
        return new self('Error while encoding to JSON', 0, $previous);
    }
}