Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function handleException($exception): void |
||
17 | { |
||
18 | // If this is a Twig Runtime exception, use the previous one instead |
||
19 | if ($exception instanceof SecurityError && ($previousException = $exception->getPrevious()) !== null) { |
||
20 | $exception = $previousException; |
||
21 | } |
||
22 | parent::handleException($exception); |
||
23 | } |
||
25 |