Files
Sentri/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php
2026-07-07 22:49:30 +02:00

12 lines
251 B
PHP

<?php
namespace Safe\Exceptions;
class JsonException extends \JsonException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
return new self(\json_last_error_msg(), \json_last_error());
}
}