mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 21:37:29 +00:00
fixed various small bugs
This commit is contained in:
@@ -35,7 +35,7 @@ class_alias('Twig\Extension\StringLoaderExtension', 'Twig_Extension_StringLoader
|
||||
|
||||
namespace {
|
||||
use Twig\Environment;
|
||||
use Twig\Template;
|
||||
use Twig\TemplateWrapper;
|
||||
|
||||
/**
|
||||
* Loads a template from a string.
|
||||
@@ -45,7 +45,7 @@ use Twig\Template;
|
||||
* @param string $template A template as a string or object implementing __toString()
|
||||
* @param string $name An optional name of the template to be used in error messages
|
||||
*
|
||||
* @return Template
|
||||
* @return TemplateWrapper
|
||||
*/
|
||||
function twig_template_from_string(Environment $env, $template, $name = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user