| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function build(Throwable $exception): array |
||
| 50 | { |
||
| 51 | $errors = []; |
||
| 52 | |||
| 53 | $errors[] = $this->createError($exception); |
||
| 54 | if ($this->traceStack && $exception->getPrevious()) { |
||
| 55 | $errors = array_merge($errors, $this->build($exception->getPrevious())); |
||
| 56 | } |
||
| 57 | |||
| 58 | return $errors; |
||
| 59 | } |
||
| 77 |