@@ -411,21 +411,21 @@ |
||
| 411 | 411 | protected function normalizeException(Throwable $e) |
| 412 | 412 | { |
| 413 | 413 | if (! $e instanceof Exception) { |
| 414 | - if ($e instanceof \ParseError) { |
|
| 415 | - $severity = E_PARSE; |
|
| 416 | - } elseif ($e instanceof \TypeError) { |
|
| 417 | - $severity = E_RECOVERABLE_ERROR; |
|
| 418 | - } else { |
|
| 419 | - $severity = E_ERROR; |
|
| 420 | - } |
|
| 414 | + if ($e instanceof \ParseError) { |
|
| 415 | + $severity = E_PARSE; |
|
| 416 | + } elseif ($e instanceof \TypeError) { |
|
| 417 | + $severity = E_RECOVERABLE_ERROR; |
|
| 418 | + } else { |
|
| 419 | + $severity = E_ERROR; |
|
| 420 | + } |
|
| 421 | 421 | |
| 422 | - //error_get_last() syntax |
|
| 423 | - $error = [ |
|
| 424 | - 'type' => $severity, |
|
| 425 | - 'message' => $e->getMessage(), |
|
| 426 | - 'file' => $e->getFile(), |
|
| 427 | - 'line' => $e->getLine(), |
|
| 428 | - ]; |
|
| 422 | + //error_get_last() syntax |
|
| 423 | + $error = [ |
|
| 424 | + 'type' => $severity, |
|
| 425 | + 'message' => $e->getMessage(), |
|
| 426 | + 'file' => $e->getFile(), |
|
| 427 | + 'line' => $e->getLine(), |
|
| 428 | + ]; |
|
| 429 | 429 | |
| 430 | 430 | $e = new FatalError($e->getMessage(), $e->getCode(), $error, null, true, $e->getTrace()); |
| 431 | 431 | } |