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