mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-07-10 14:04:13 +02:00
3fd7856543
* move most OTP-related stuff into userhelper * remove old phpqrcode and otphp libraries
12 lines
307 B
PHP
12 lines
307 B
PHP
<?php
|
|
namespace Safe\Exceptions;
|
|
|
|
class InfoException extends \ErrorException implements SafeExceptionInterface
|
|
{
|
|
public static function createFromPhpError(): self
|
|
{
|
|
$error = error_get_last();
|
|
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
|
|
}
|
|
}
|