mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 21:37:29 +00:00
added the possibility to give a nice name to string templates
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user