1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
Oinktube/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php
2024-08-21 09:11:05 -03:00

12 lines
252 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());
}
}