| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 2 | protected function resolveException($exception) :\Throwable |
|
| 35 | { |
||
| 36 | 2 | if (is_string($exception) || ! ($exception instanceof \Throwable)) { |
|
| 37 | try { |
||
| 38 | 2 | $exception = new $exception; |
|
| 39 | 1 | } catch (\ArgumentCountError $e) { |
|
| 40 | 1 | throw new ResolveFailedException(); |
|
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | 1 | return $exception; |
|
| 45 | } |
||
| 47 |