diff options
Diffstat (limited to 'vendor/thecodingmachine/safe/deprecated/Exceptions')
6 files changed, 0 insertions, 70 deletions
diff --git a/vendor/thecodingmachine/safe/deprecated/Exceptions/ApcException.php b/vendor/thecodingmachine/safe/deprecated/Exceptions/ApcException.php deleted file mode 100644 index f344490d8..000000000 --- a/vendor/thecodingmachine/safe/deprecated/Exceptions/ApcException.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php -namespace Safe\Exceptions; - -class ApcException 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/deprecated/Exceptions/LibeventException.php b/vendor/thecodingmachine/safe/deprecated/Exceptions/LibeventException.php deleted file mode 100644 index e1df31b77..000000000 --- a/vendor/thecodingmachine/safe/deprecated/Exceptions/LibeventException.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php -namespace Safe\Exceptions; - -class LibeventException 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/deprecated/Exceptions/MssqlException.php b/vendor/thecodingmachine/safe/deprecated/Exceptions/MssqlException.php deleted file mode 100644 index 814bd4e0b..000000000 --- a/vendor/thecodingmachine/safe/deprecated/Exceptions/MssqlException.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php -namespace Safe\Exceptions; - -class MssqlException 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/deprecated/Exceptions/MysqliException.php b/vendor/thecodingmachine/safe/deprecated/Exceptions/MysqliException.php deleted file mode 100644 index 4cadf6ca1..000000000 --- a/vendor/thecodingmachine/safe/deprecated/Exceptions/MysqliException.php +++ /dev/null @@ -1,11 +0,0 @@ -<?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/deprecated/Exceptions/PasswordException.php b/vendor/thecodingmachine/safe/deprecated/Exceptions/PasswordException.php deleted file mode 100644 index 9c183b8e4..000000000 --- a/vendor/thecodingmachine/safe/deprecated/Exceptions/PasswordException.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -namespace Safe\Exceptions; - -/** - * @deprecated This exception is deprecated - */ -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/deprecated/Exceptions/StatsException.php b/vendor/thecodingmachine/safe/deprecated/Exceptions/StatsException.php deleted file mode 100644 index f8a7f45c2..000000000 --- a/vendor/thecodingmachine/safe/deprecated/Exceptions/StatsException.php +++ /dev/null @@ -1,11 +0,0 @@ -<?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); - } -} |