Files
drmaterac.pl/modules/pshowsso/deps/lcobucci/jwt/src/Encoding/CannotEncodeContent.php
Jacek Pyziak 778ee26fe4 Add Symfony Deprecation Contracts package
- 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.
2025-12-15 08:43:18 +01:00

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);
}
}