added the possibility to give a nice name to string templates

This commit is contained in:
Fabien Potencier
2019-04-11 09:53:41 +02:00
parent 40fd7c4f86
commit d7e2e5418c
5 changed files with 28 additions and 8 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ use Twig\Template;
*
* @return Template
*/
function twig_template_from_string(Environment $env, $template, string $name=null)
function twig_template_from_string(Environment $env, $template, string $name = null)
{
return $env->createTemplate((string) $template, $name);
}