@@ -78,7 +78,7 @@ |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
81 | - * @return int |
|
81 | + * @return string |
|
82 | 82 | */ |
83 | 83 | public function getErrorLine() { |
84 | 84 | return $this->errorLine; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Weew\ErrorHandler\ErrorType; |
7 | 7 | |
8 | 8 | abstract class RecoverableException extends Exception |
9 | - implements IErrorException{ |
|
9 | + implements IErrorException { |
|
10 | 10 | /** |
11 | 11 | * @var int |
12 | 12 | */ |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | return; |
103 | 103 | } |
104 | 104 | |
105 | - set_error_handler(function ($number, $string, $file, $line) { |
|
105 | + set_error_handler(function($number, $string, $file, $line) { |
|
106 | 106 | // remove error from error_get_last() |
107 | 107 | @trigger_error(null); |
108 | 108 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | return; |
122 | 122 | } |
123 | 123 | |
124 | - register_shutdown_function(function () { |
|
124 | + register_shutdown_function(function() { |
|
125 | 125 | return $this->errorConverter |
126 | 126 | ->extractFatalErrorAndCallHandler($this); |
127 | 127 | }); |
@@ -244,7 +244,7 @@ |
||
244 | 244 | } |
245 | 245 | |
246 | 246 | /** |
247 | - * @param Throwable $ex |
|
247 | + * @param Exception $ex |
|
248 | 248 | * |
249 | 249 | * @throws Throwable |
250 | 250 | */ |