Completed
Pull Request — 1.4 (#64)
by David
10:09 queued 01:34
created
src/Mouf/Database/MagicQuery/Twig/SqlTwigEnvironmentFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -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.