Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c68b326

Browse files
committed
[TwigBundle] fixed error messages when an error occurs during template compilation
1 parent 2dfac2a commit c68b326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/TwigBundle/TwigEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function exists($name)
8989
*/
9090
public function load($name)
9191
{
92-
return $this->environment->loadTemplate($this->parser->parse($name));
92+
return $this->environment->loadTemplate($this->parser->parse($name), is_array($name) ? json_encode($name) : $name);
9393
}
9494

9595
/**

0 commit comments

Comments
 (0)