- Created CHANGELOG.md to maintain version history. - Added README.md with usage instructions for the trigger_deprecation() function. - Initialized composer.json for the Symfony Deprecation Contracts library, specifying dependencies and autoloading.
21 lines
450 B
PHP
21 lines
450 B
PHP
<?php
|
|
|
|
namespace PShowSsoScoped\Lcobucci\JWT\Encoding;
|
|
|
|
use JsonException;
|
|
use PShowSsoScoped\Lcobucci\JWT\Exception;
|
|
use RuntimeException;
|
|
|
|
final class CannotEncodeContent extends RuntimeException implements Exception
|
|
{
|
|
/**
|
|
* @param JsonException $previous
|
|
*
|
|
* @return self
|
|
*/
|
|
public static function jsonIssues(JsonException $previous)
|
|
{
|
|
return new self('Error while encoding to JSON', 0, $previous);
|
|
}
|
|
}
|