mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 17:11:30 +00:00
* switch to composer for qrcode and otp dependencies
* move most OTP-related stuff into userhelper * remove old phpqrcode and otphp libraries
This commit is contained in:
12
vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php
vendored
Normal file
12
vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php
vendored
Normal file
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user