This commit is contained in:
Your Name committed 2021-07-26 19:46:18 +02:00
1 parent e7a49138bb
commit aae17f10a6
818 files changed
+70693 -16406

No files matched your search

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