|
@@ -36,7 +36,7 @@ |
|
|
block discarded – undo |
|
36
|
36
|
|
|
37
|
37
|
/** @var EscaperExtension $twigExtensionEscaper */ |
|
38
|
38
|
$twigExtensionEscaper = $twig->getExtension(EscaperExtension::class); |
|
39
|
|
- $twigExtensionEscaper->setEscaper('sql', function () { |
|
|
39
|
+ $twigExtensionEscaper->setEscaper('sql', function() { |
|
40
|
40
|
throw new ForbiddenTwigParameterInSqlException('You cannot use Twig expressions (like "{{ id }}"). Instead, you should use SQL parameters (like ":id"). Twig integration is limited to Twig statements (like "{% for .... %}"'); |
|
41
|
41
|
}); |
|
42
|
42
|
|
Please login to merge, or discard this patch.