| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public static function fromTwig(\Twig_Error_Syntax $error): CompileException |
||
| 24 | { |
||
| 25 | $exception = new static($error->getMessage(), $error->getCode(), $error); |
||
| 26 | $exception->file = $error->getSourceContext()->getPath(); |
||
| 27 | $exception->line = $error->getTemplateLine(); |
||
| 28 | |||
| 29 | return $exception; |
||
| 30 | } |
||
| 31 | } |