@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param \Throwable $exception |
35 | 35 | * @return int|null |
36 | 36 | */ |
37 | - public function __invoke(\Throwable $exception): ?int |
|
37 | + public function __invoke(\Throwable $exception): ? int |
|
38 | 38 | { |
39 | 39 | foreach ($this->handlers as $handler) { |
40 | 40 | $signal = $handler($exception); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param \Throwable $throwable |
35 | 35 | * @return int |
36 | 36 | */ |
37 | - public function __invoke(\Throwable $throwable): ?int |
|
37 | + public function __invoke(\Throwable $throwable): ? int |
|
38 | 38 | { |
39 | 39 | error_log( |
40 | 40 | ExceptionHelper::toJson($throwable), |
@@ -17,5 +17,5 @@ |
||
17 | 17 | * @param \Throwable $throwable |
18 | 18 | * @return int Exit code |
19 | 19 | */ |
20 | - public function __invoke(\Throwable $throwable): ?int; |
|
20 | + public function __invoke(\Throwable $throwable): ? int; |
|
21 | 21 | } |
22 | 22 | \ No newline at end of file |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * @param \Throwable $throwable |
30 | 30 | * @return int|null |
31 | 31 | */ |
32 | - public function __invoke(\Throwable $throwable): ?int |
|
32 | + public function __invoke(\Throwable $throwable): ? int |
|
33 | 33 | { |
34 | 34 | // @TODO header content-type |
35 | 35 | // @TODO json_encode body |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * @param \Throwable $throwable |
47 | 47 | * @return int|null |
48 | 48 | */ |
49 | - public function __invoke(\Throwable $throwable): ?int |
|
49 | + public function __invoke(\Throwable $throwable): ? int |
|
50 | 50 | { |
51 | 51 | if (!headers_sent()) { |
52 | 52 | header_remove('Content-Type'); |
@@ -19,11 +19,10 @@ |
||
19 | 19 | * @param \Throwable $throwable |
20 | 20 | * @return int |
21 | 21 | */ |
22 | - public function __invoke(\Throwable $throwable): ?int |
|
22 | + public function __invoke(\Throwable $throwable): ? int |
|
23 | 23 | { |
24 | 24 | echo DebugHelper::dump($throwable, $this->pretty); |
25 | 25 | |
26 | - return $this->exit ? $throwable->getCode() : |
|
27 | - null; |
|
26 | + return $this->exit ? $throwable->getCode() : null; |
|
28 | 27 | } |
29 | 28 | } |
30 | 29 | \ No newline at end of file |
@@ -19,11 +19,10 @@ |
||
19 | 19 | * @param \Throwable $throwable |
20 | 20 | * @return int |
21 | 21 | */ |
22 | - public function __invoke(\Throwable $throwable): ?int |
|
22 | + public function __invoke(\Throwable $throwable): ? int |
|
23 | 23 | { |
24 | 24 | echo DebugHelper::export($throwable, $this->pretty); |
25 | 25 | |
26 | - return $this->exit ? $throwable->getCode() : |
|
27 | - null; |
|
26 | + return $this->exit ? $throwable->getCode() : null; |
|
28 | 27 | } |
29 | 28 | } |
30 | 29 | \ No newline at end of file |
@@ -142,7 +142,7 @@ |
||
142 | 142 | |
143 | 143 | $exception = new \ErrorException( |
144 | 144 | $error['message'], $error['type'], $error['type'], |
145 | - $error['file'], $error['line'] |
|
145 | + $error['file'], $error['line'] |
|
146 | 146 | ); |
147 | 147 | |
148 | 148 | $this->handleException($exception); |
@@ -38,11 +38,10 @@ |
||
38 | 38 | * @param \Throwable $throwable |
39 | 39 | * @return int|null |
40 | 40 | */ |
41 | - public function __invoke(\Throwable $throwable): ?int |
|
41 | + public function __invoke(\Throwable $throwable): ? int |
|
42 | 42 | { |
43 | 43 | DebugHelper::export($throwable, $this->pretty); |
44 | 44 | |
45 | - return $this->exit ? $throwable->getCode() : |
|
46 | - null; |
|
45 | + return $this->exit ? $throwable->getCode() : null; |
|
47 | 46 | } |
48 | 47 | } |
49 | 48 | \ No newline at end of file |