Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function __construct(string $message = "", int $code = 0, \Throwable $previous = null) |
||
12 | { |
||
13 | parent::__construct($message, $code, $previous); |
||
14 | |||
15 | error_log( |
||
16 | 'Uncaught Error: ' . $this->getMessage() . ' in ' . $this->getFile() . ':' . $this->getLine() . "\n" |
||
17 | . "Stack trace:\n" . $this->getTraceAsString() . "\n" |
||
18 | . ' thrown in ' . $this->getFile() . ' on line ' . $this->getLine() |
||
19 | ); |
||
22 |