Manual Servers

This commit is contained in:
2026-03-12 22:47:38 +01:00
parent 5dc5b59b4b
commit c9f612f5aa
43487 changed files with 2411308 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<?php
namespace Safe\Exceptions;
class GettextException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
$error = error_get_last();
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
}
}