You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tt-rss/vendor/thecodingmachine/safe/deprecated/Exceptions/StatsException.php

12 lines
308 B
PHP

<?php
namespace Safe\Exceptions;
class StatsException 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);
}
}