@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class MysqliException extends \ErrorException implements SafeExceptionInterface |
5 | 5 | { |
6 | - public static function createFromPhpError(): self |
|
7 | - { |
|
8 | - $error = error_get_last(); |
|
9 | - return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | - } |
|
6 | + public static function createFromPhpError(): self |
|
7 | + { |
|
8 | + $error = error_get_last(); |
|
9 | + return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | + } |
|
11 | 11 | } |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class LdapException extends \ErrorException implements SafeExceptionInterface |
5 | 5 | { |
6 | - public static function createFromPhpError(): self |
|
7 | - { |
|
8 | - $error = error_get_last(); |
|
9 | - return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | - } |
|
6 | + public static function createFromPhpError(): self |
|
7 | + { |
|
8 | + $error = error_get_last(); |
|
9 | + return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | + } |
|
11 | 11 | } |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class HashException extends \ErrorException implements SafeExceptionInterface |
5 | 5 | { |
6 | - public static function createFromPhpError(): self |
|
7 | - { |
|
8 | - $error = error_get_last(); |
|
9 | - return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | - } |
|
6 | + public static function createFromPhpError(): self |
|
7 | + { |
|
8 | + $error = error_get_last(); |
|
9 | + return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | + } |
|
11 | 11 | } |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class MiscException extends \ErrorException implements SafeExceptionInterface |
5 | 5 | { |
6 | - public static function createFromPhpError(): self |
|
7 | - { |
|
8 | - $error = error_get_last(); |
|
9 | - return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | - } |
|
6 | + public static function createFromPhpError(): self |
|
7 | + { |
|
8 | + $error = error_get_last(); |
|
9 | + return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | + } |
|
11 | 11 | } |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class UopzException extends \ErrorException implements SafeExceptionInterface |
5 | 5 | { |
6 | - public static function createFromPhpError(): self |
|
7 | - { |
|
8 | - $error = error_get_last(); |
|
9 | - return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | - } |
|
6 | + public static function createFromPhpError(): self |
|
7 | + { |
|
8 | + $error = error_get_last(); |
|
9 | + return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | + } |
|
11 | 11 | } |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class UodbcException extends \ErrorException implements SafeExceptionInterface |
5 | 5 | { |
6 | - public static function createFromPhpError(): self |
|
7 | - { |
|
8 | - $error = error_get_last(); |
|
9 | - return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | - } |
|
6 | + public static function createFromPhpError(): self |
|
7 | + { |
|
8 | + $error = error_get_last(); |
|
9 | + return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | + } |
|
11 | 11 | } |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class SemException extends \ErrorException implements SafeExceptionInterface |
5 | 5 | { |
6 | - public static function createFromPhpError(): self |
|
7 | - { |
|
8 | - $error = error_get_last(); |
|
9 | - return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | - } |
|
6 | + public static function createFromPhpError(): self |
|
7 | + { |
|
8 | + $error = error_get_last(); |
|
9 | + return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | + } |
|
11 | 11 | } |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class ComException extends \ErrorException implements SafeExceptionInterface |
5 | 5 | { |
6 | - public static function createFromPhpError(): self |
|
7 | - { |
|
8 | - $error = error_get_last(); |
|
9 | - return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | - } |
|
6 | + public static function createFromPhpError(): self |
|
7 | + { |
|
8 | + $error = error_get_last(); |
|
9 | + return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | + } |
|
11 | 11 | } |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class ReadlineException extends \ErrorException implements SafeExceptionInterface |
5 | 5 | { |
6 | - public static function createFromPhpError(): self |
|
7 | - { |
|
8 | - $error = error_get_last(); |
|
9 | - return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | - } |
|
6 | + public static function createFromPhpError(): self |
|
7 | + { |
|
8 | + $error = error_get_last(); |
|
9 | + return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); |
|
10 | + } |
|
11 | 11 | } |