diff options
author | Andrew Dolgov <[email protected]> | 2021-02-26 19:16:17 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-26 19:16:17 +0300 |
commit | 3fd785654372d493c031d9b541ab33a881023a32 (patch) | |
tree | 0a76cb410217074378de3d7012b95754cd3c7e6f /vendor/thecodingmachine/safe/generated/Exceptions | |
parent | bc4475b6698f5a74e475674aa7af43253c459892 (diff) |
* switch to composer for qrcode and otp dependencies
* move most OTP-related stuff into userhelper
* remove old phpqrcode and otphp libraries
Diffstat (limited to 'vendor/thecodingmachine/safe/generated/Exceptions')
81 files changed, 880 insertions, 0 deletions
diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/.gitkeep b/vendor/thecodingmachine/safe/generated/Exceptions/.gitkeep new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/.gitkeep diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ApacheException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ApacheException.php new file mode 100644 index 000000000..5d69236fa --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ApacheException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ApacheException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ApcuException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ApcuException.php new file mode 100644 index 000000000..a9fc893e5 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ApcuException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ApcuException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ArrayException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ArrayException.php new file mode 100644 index 000000000..154800c32 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ArrayException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ArrayException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/Bzip2Exception.php b/vendor/thecodingmachine/safe/generated/Exceptions/Bzip2Exception.php new file mode 100644 index 000000000..dd4ab83f3 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/Bzip2Exception.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class Bzip2Exception 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/CalendarException.php b/vendor/thecodingmachine/safe/generated/Exceptions/CalendarException.php new file mode 100644 index 000000000..66ba58842 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/CalendarException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class CalendarException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ClassobjException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ClassobjException.php new file mode 100644 index 000000000..1c377b516 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ClassobjException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ClassobjException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ComException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ComException.php new file mode 100644 index 000000000..154213436 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ComException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ComException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/CubridException.php b/vendor/thecodingmachine/safe/generated/Exceptions/CubridException.php new file mode 100644 index 000000000..853c8d258 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/CubridException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class CubridException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/DatetimeException.php b/vendor/thecodingmachine/safe/generated/Exceptions/DatetimeException.php new file mode 100644 index 000000000..63d5f9388 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/DatetimeException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class DatetimeException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/DirException.php b/vendor/thecodingmachine/safe/generated/Exceptions/DirException.php new file mode 100644 index 000000000..100308e60 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/DirException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class DirException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/EioException.php b/vendor/thecodingmachine/safe/generated/Exceptions/EioException.php new file mode 100644 index 000000000..f4e121ab7 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/EioException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class EioException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ErrorfuncException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ErrorfuncException.php new file mode 100644 index 000000000..bf412400d --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ErrorfuncException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ErrorfuncException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ExecException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ExecException.php new file mode 100644 index 000000000..f7c503c8c --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ExecException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ExecException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/FileinfoException.php b/vendor/thecodingmachine/safe/generated/Exceptions/FileinfoException.php new file mode 100644 index 000000000..b9e3abbee --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/FileinfoException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class FileinfoException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/FilesystemException.php b/vendor/thecodingmachine/safe/generated/Exceptions/FilesystemException.php new file mode 100644 index 000000000..3c1c70e30 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/FilesystemException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class FilesystemException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/FilterException.php b/vendor/thecodingmachine/safe/generated/Exceptions/FilterException.php new file mode 100644 index 000000000..a2c1b5c88 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/FilterException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class FilterException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/FpmException.php b/vendor/thecodingmachine/safe/generated/Exceptions/FpmException.php new file mode 100644 index 000000000..0017b4c2c --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/FpmException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class FpmException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/FtpException.php b/vendor/thecodingmachine/safe/generated/Exceptions/FtpException.php new file mode 100644 index 000000000..0e2b7dded --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/FtpException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class FtpException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/FunchandException.php b/vendor/thecodingmachine/safe/generated/Exceptions/FunchandException.php new file mode 100644 index 000000000..1ee4a2113 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/FunchandException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class FunchandException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/GmpException.php b/vendor/thecodingmachine/safe/generated/Exceptions/GmpException.php new file mode 100644 index 000000000..a13c11a6e --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/GmpException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class GmpException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/GnupgException.php b/vendor/thecodingmachine/safe/generated/Exceptions/GnupgException.php new file mode 100644 index 000000000..cf3a1e74a --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/GnupgException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class GnupgException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/HashException.php b/vendor/thecodingmachine/safe/generated/Exceptions/HashException.php new file mode 100644 index 000000000..1dc09763d --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/HashException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class HashException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/IbaseException.php b/vendor/thecodingmachine/safe/generated/Exceptions/IbaseException.php new file mode 100644 index 000000000..0346ec3c2 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/IbaseException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class IbaseException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/IbmDb2Exception.php b/vendor/thecodingmachine/safe/generated/Exceptions/IbmDb2Exception.php new file mode 100644 index 000000000..4843f8521 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/IbmDb2Exception.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class IbmDb2Exception 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/IconvException.php b/vendor/thecodingmachine/safe/generated/Exceptions/IconvException.php new file mode 100644 index 000000000..0dd163709 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/IconvException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class IconvException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ImageException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ImageException.php new file mode 100644 index 000000000..c49880346 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ImageException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ImageException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ImapException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ImapException.php new file mode 100644 index 000000000..6b6bbc7fe --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ImapException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ImapException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/InfoException.php b/vendor/thecodingmachine/safe/generated/Exceptions/InfoException.php new file mode 100644 index 000000000..5221e1fd8 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/InfoException.php @@ -0,0 +1,11 @@ +<?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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/IngresiiException.php b/vendor/thecodingmachine/safe/generated/Exceptions/IngresiiException.php new file mode 100644 index 000000000..ca40822e9 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/IngresiiException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class IngresiiException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/InotifyException.php b/vendor/thecodingmachine/safe/generated/Exceptions/InotifyException.php new file mode 100644 index 000000000..64048dca9 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/InotifyException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class InotifyException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/LdapException.php b/vendor/thecodingmachine/safe/generated/Exceptions/LdapException.php new file mode 100644 index 000000000..5c142cb08 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/LdapException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class LdapException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/LibxmlException.php b/vendor/thecodingmachine/safe/generated/Exceptions/LibxmlException.php new file mode 100644 index 000000000..b2772da0a --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/LibxmlException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class LibxmlException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/LzfException.php b/vendor/thecodingmachine/safe/generated/Exceptions/LzfException.php new file mode 100644 index 000000000..82352faa7 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/LzfException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class LzfException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/MailparseException.php b/vendor/thecodingmachine/safe/generated/Exceptions/MailparseException.php new file mode 100644 index 000000000..1f3d73708 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/MailparseException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class MailparseException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/MbstringException.php b/vendor/thecodingmachine/safe/generated/Exceptions/MbstringException.php new file mode 100644 index 000000000..2f7913a3e --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/MbstringException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class MbstringException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/MiscException.php b/vendor/thecodingmachine/safe/generated/Exceptions/MiscException.php new file mode 100644 index 000000000..2fd1475dc --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/MiscException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class MiscException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/MsqlException.php b/vendor/thecodingmachine/safe/generated/Exceptions/MsqlException.php new file mode 100644 index 000000000..c67314ea8 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/MsqlException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class MsqlException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/MysqlException.php b/vendor/thecodingmachine/safe/generated/Exceptions/MysqlException.php new file mode 100644 index 000000000..bd6904383 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/MysqlException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class MysqlException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/MysqliException.php b/vendor/thecodingmachine/safe/generated/Exceptions/MysqliException.php new file mode 100644 index 000000000..4cadf6ca1 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/MysqliException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class MysqliException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/MysqlndMsException.php b/vendor/thecodingmachine/safe/generated/Exceptions/MysqlndMsException.php new file mode 100644 index 000000000..5e9b55944 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/MysqlndMsException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class MysqlndMsException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/MysqlndQcException.php b/vendor/thecodingmachine/safe/generated/Exceptions/MysqlndQcException.php new file mode 100644 index 000000000..4db9f4911 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/MysqlndQcException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class MysqlndQcException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/NetworkException.php b/vendor/thecodingmachine/safe/generated/Exceptions/NetworkException.php new file mode 100644 index 000000000..e740ca19c --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/NetworkException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class NetworkException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/Oci8Exception.php b/vendor/thecodingmachine/safe/generated/Exceptions/Oci8Exception.php new file mode 100644 index 000000000..b1d93b21a --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/Oci8Exception.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class Oci8Exception 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/OpcacheException.php b/vendor/thecodingmachine/safe/generated/Exceptions/OpcacheException.php new file mode 100644 index 000000000..03309e77d --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/OpcacheException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class OpcacheException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/OutcontrolException.php b/vendor/thecodingmachine/safe/generated/Exceptions/OutcontrolException.php new file mode 100644 index 000000000..ffc91f7bc --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/OutcontrolException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class OutcontrolException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/PasswordException.php b/vendor/thecodingmachine/safe/generated/Exceptions/PasswordException.php new file mode 100644 index 000000000..f0edba123 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/PasswordException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class PasswordException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/PcntlException.php b/vendor/thecodingmachine/safe/generated/Exceptions/PcntlException.php new file mode 100644 index 000000000..00d51f131 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/PcntlException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class PcntlException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/PdfException.php b/vendor/thecodingmachine/safe/generated/Exceptions/PdfException.php new file mode 100644 index 000000000..bcf36b3ce --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/PdfException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class PdfException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/PgsqlException.php b/vendor/thecodingmachine/safe/generated/Exceptions/PgsqlException.php new file mode 100644 index 000000000..5d264c2f0 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/PgsqlException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class PgsqlException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/PosixException.php b/vendor/thecodingmachine/safe/generated/Exceptions/PosixException.php new file mode 100644 index 000000000..3eec244c6 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/PosixException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class PosixException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/PsException.php b/vendor/thecodingmachine/safe/generated/Exceptions/PsException.php new file mode 100644 index 000000000..7571ebf57 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/PsException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class PsException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/PspellException.php b/vendor/thecodingmachine/safe/generated/Exceptions/PspellException.php new file mode 100644 index 000000000..7645cc910 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/PspellException.php @@ -0,0 +1,11 @@ +<?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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ReadlineException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ReadlineException.php new file mode 100644 index 000000000..b6bb37082 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ReadlineException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ReadlineException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/RpminfoException.php b/vendor/thecodingmachine/safe/generated/Exceptions/RpminfoException.php new file mode 100644 index 000000000..7596451d3 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/RpminfoException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class RpminfoException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/RrdException.php b/vendor/thecodingmachine/safe/generated/Exceptions/RrdException.php new file mode 100644 index 000000000..45793e804 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/RrdException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class RrdException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/SemException.php b/vendor/thecodingmachine/safe/generated/Exceptions/SemException.php new file mode 100644 index 000000000..dd97ea5fa --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/SemException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class SemException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/SessionException.php b/vendor/thecodingmachine/safe/generated/Exceptions/SessionException.php new file mode 100644 index 000000000..9c1be7975 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/SessionException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class SessionException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ShmopException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ShmopException.php new file mode 100644 index 000000000..0673848a7 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ShmopException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ShmopException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/SimplexmlException.php b/vendor/thecodingmachine/safe/generated/Exceptions/SimplexmlException.php new file mode 100644 index 000000000..67804e133 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/SimplexmlException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class SimplexmlException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/SocketsException.php b/vendor/thecodingmachine/safe/generated/Exceptions/SocketsException.php new file mode 100644 index 000000000..172f5d78f --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/SocketsException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class SocketsException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/SodiumException.php b/vendor/thecodingmachine/safe/generated/Exceptions/SodiumException.php new file mode 100644 index 000000000..f33ec049e --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/SodiumException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class SodiumException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/SolrException.php b/vendor/thecodingmachine/safe/generated/Exceptions/SolrException.php new file mode 100644 index 000000000..2431870f7 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/SolrException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class SolrException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/SplException.php b/vendor/thecodingmachine/safe/generated/Exceptions/SplException.php new file mode 100644 index 000000000..cae8dbc25 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/SplException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class SplException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/SqlsrvException.php b/vendor/thecodingmachine/safe/generated/Exceptions/SqlsrvException.php new file mode 100644 index 000000000..6015cd263 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/SqlsrvException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class SqlsrvException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/SsdeepException.php b/vendor/thecodingmachine/safe/generated/Exceptions/SsdeepException.php new file mode 100644 index 000000000..209017945 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/SsdeepException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class SsdeepException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/Ssh2Exception.php b/vendor/thecodingmachine/safe/generated/Exceptions/Ssh2Exception.php new file mode 100644 index 000000000..72ca90fd7 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/Ssh2Exception.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class Ssh2Exception 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/StreamException.php b/vendor/thecodingmachine/safe/generated/Exceptions/StreamException.php new file mode 100644 index 000000000..24624749f --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/StreamException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class StreamException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/StringsException.php b/vendor/thecodingmachine/safe/generated/Exceptions/StringsException.php new file mode 100644 index 000000000..9e7b356da --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/StringsException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class StringsException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/SwooleException.php b/vendor/thecodingmachine/safe/generated/Exceptions/SwooleException.php new file mode 100644 index 000000000..088c0de87 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/SwooleException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class SwooleException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/UodbcException.php b/vendor/thecodingmachine/safe/generated/Exceptions/UodbcException.php new file mode 100644 index 000000000..92f94a52f --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/UodbcException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class UodbcException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/UopzException.php b/vendor/thecodingmachine/safe/generated/Exceptions/UopzException.php new file mode 100644 index 000000000..16e1ab5d7 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/UopzException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class UopzException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/UrlException.php b/vendor/thecodingmachine/safe/generated/Exceptions/UrlException.php new file mode 100644 index 000000000..770125017 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/UrlException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class UrlException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/VarException.php b/vendor/thecodingmachine/safe/generated/Exceptions/VarException.php new file mode 100644 index 000000000..b2427c9fc --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/VarException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class VarException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/XdiffException.php b/vendor/thecodingmachine/safe/generated/Exceptions/XdiffException.php new file mode 100644 index 000000000..c6adcd574 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/XdiffException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class XdiffException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/XmlException.php b/vendor/thecodingmachine/safe/generated/Exceptions/XmlException.php new file mode 100644 index 000000000..ebca08f36 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/XmlException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class XmlException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/XmlrpcException.php b/vendor/thecodingmachine/safe/generated/Exceptions/XmlrpcException.php new file mode 100644 index 000000000..70e12d67a --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/XmlrpcException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class XmlrpcException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/YamlException.php b/vendor/thecodingmachine/safe/generated/Exceptions/YamlException.php new file mode 100644 index 000000000..f1c2e60a3 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/YamlException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class YamlException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/YazException.php b/vendor/thecodingmachine/safe/generated/Exceptions/YazException.php new file mode 100644 index 000000000..22a174f5c --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/YazException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class YazException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ZipException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ZipException.php new file mode 100644 index 000000000..fb6ba54f5 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ZipException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ZipException 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); + } +} diff --git a/vendor/thecodingmachine/safe/generated/Exceptions/ZlibException.php b/vendor/thecodingmachine/safe/generated/Exceptions/ZlibException.php new file mode 100644 index 000000000..35f81b019 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/Exceptions/ZlibException.php @@ -0,0 +1,11 @@ +<?php +namespace Safe\Exceptions; + +class ZlibException 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); + } +} |