friendship ended with social-app. php is my new best friend
at main 556 B view raw
1<?php 2declare(strict_types=1); 3 4namespace Lcobucci\JWT\Encoding; 5 6use JsonException; 7use Lcobucci\JWT\Exception; 8use RuntimeException; 9 10final class CannotDecodeContent extends RuntimeException implements Exception 11{ 12 public static function jsonIssues(JsonException $previous): self 13 { 14 return new self(message: 'Error while decoding from JSON', previous: $previous); 15 } 16 17 public static function invalidBase64String(): self 18 { 19 return new self('Error while decoding from Base64Url, invalid base64 characters detected'); 20 } 21}