| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function log(\Throwable $exception): void |
||
| 26 | { |
||
| 27 | $this->fileLogger->error(ErrorMessageHelper::format($exception), $exception->getTrace()); |
||
| 28 | $previous = $exception->getPrevious(); |
||
| 29 | if (!$previous instanceof \Throwable) { |
||
|
|
|||
| 30 | return; |
||
| 31 | } |
||
| 32 | do { |
||
| 33 | $this->fileLogger->error(ErrorMessageHelper::format($previous), $previous->getTrace()); |
||
| 34 | // phpcs:ignore SlevomatCodingStandard.ControlStructures.AssignmentInCondition.AssignmentInCondition |
||
| 35 | } while ($previous = $previous->getPrevious()); |
||
| 36 | } |
||
| 38 |