| 1 | <?php |
||
| 16 | class InvalidTemplateContentException extends \InvalidArgumentException |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @param string $escape_method |
||
| 20 | * @param string $source_fragment |
||
| 21 | * |
||
| 22 | * @return static |
||
| 23 | */ |
||
| 24 | public static function containsImplicitDoubleEscape($escape_method, $source_fragment) |
||
| 25 | { |
||
| 26 | return new static( |
||
| 27 | "Invalid implicit double-escape in template - remove $escape_method from `$source_fragment` or mark as raw" |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | public static function forEmptyTemplate() |
||
| 35 | |||
| 36 | } |
||
| 37 |