From 8baefc92fdc7244edef5418fef539ace80dc8326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Escandell?= Date: Mon, 4 Jan 2016 23:58:35 +0100 Subject: [PATCH] FIX miss parenthesis --- Twig/Extension/FormExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Twig/Extension/FormExtension.php b/Twig/Extension/FormExtension.php index c75b9f8..9542fc1 100644 --- a/Twig/Extension/FormExtension.php +++ b/Twig/Extension/FormExtension.php @@ -30,7 +30,7 @@ public function __construct(TwigRendererInterface $renderer) public function getFunctions() { return array( - 'form_js' => new \Twig_SimpleFunction('form_js', array($this, 'renderJavascript', array('is_safe' => array('html')))), + 'form_js' => new \Twig_SimpleFunction('form_js', array($this, 'renderJavascript'), array('is_safe' => array('html'))), 'form_css' => new \Twig_SimpleFunction('form_css', null, array('node_class' => 'Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode', 'is_safe' => array('html'))), ); }