D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
psa
/
phpMyAdmin
/
vendor
/
thecodingmachine
/
safe
/
deprecated
/
Exceptions
/
Filename :
StatsException.php
back
Copy
<?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); } }