friendship ended with social-app. php is my new best friend
1<?php
2declare(strict_types=1);
3
4namespace Lcobucci\JWT\Encoding;
5
6use JsonException;
7use Lcobucci\JWT\Exception;
8use RuntimeException;
9
10final class CannotEncodeContent extends RuntimeException implements Exception
11{
12 public static function jsonIssues(JsonException $previous): self
13 {
14 return new self(message: 'Error while encoding to JSON', previous: $previous);
15 }
16}