minor #1558 first argument of Twig_Loader_Array must be an array (maxstekel)

This PR was merged into the 1.16-dev branch.

Discussion
----------

first argument of Twig_Loader_Array must be an array

Commits
-------

435534e first argument of Twig_Loader_Array must be an array
This commit is contained in:
Fabien Potencier
2014-10-23 17:29:03 +02:00
+2 -2
View File
@@ -50,9 +50,9 @@ This section gives you a brief introduction to the PHP API for Twig.
require_once '/path/to/vendor/autoload.php';
$loader = new Twig_Loader_Array(
$loader = new Twig_Loader_Array(array(
'index' => 'Hello {{ name }}!',
);
));
$twig = new Twig_Environment($loader);
echo $twig->render('index', array('name' => 'Fabien'));