| 1 | <?php |
||
| 2 | declare(strict_types=1); |
||
| 3 | |||
| 4 | function err() |
||
| 5 | { |
||
| 6 | $exception = new Exception("test |
||
| 7 | message"); |
||
| 8 | var_dump($exception->getTrace()); |
||
|
0 ignored issues
–
show
Security
Debugging Code
introduced
by
Loading history...
|
|||
| 9 | |||
| 10 | throw $exception; |
||
| 11 | } |
||
| 12 | |||
| 13 | try { |
||
| 14 | err(); |
||
| 15 | }catch (\Throwable $e){ |
||
| 16 | var_dump($e->getTrace()); |
||
| 17 | } |