Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function __construct( |
||
22 | string $id, |
||
23 | string $error, |
||
24 | array $buildStack = [], |
||
25 | Throwable $previous = null, |
||
26 | ) { |
||
27 | $message = sprintf('Caught unhandled error "%s" while building "%s"', $error, $id); |
||
28 | |||
29 | if ($buildStack !== []) { |
||
30 | $message .= '"' . implode('" -> "', $buildStack) . '"'; |
||
31 | } |
||
32 | |||
33 | $message .= '.'; |
||
34 | |||
35 | parent::__construct($message, 0, $previous); |
||
36 | } |
||
38 |