1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00
Oinktube/vendor/thecodingmachine/safe/generated/Exceptions/PspellException.php
2024-08-21 09:11:05 -03:00

11 lines
309 B
PHP

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