mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-26 11:56:43 +00:00
Add more types to Template class and compiled templates
This commit is contained in:
committed by
Fabien Potencier
parent
22abdfafae
commit
7e52a68097
@@ -98,7 +98,7 @@ class __TwigTemplate_%x extends Template
|
||||
];
|
||||
}
|
||||
|
||||
protected function doDisplay(array \$context, array \$blocks = [])
|
||||
protected function doDisplay(array \$context, array \$blocks = []): iterable
|
||||
{
|
||||
\$macros = \$this->macros;
|
||||
// line 1
|
||||
@@ -178,7 +178,7 @@ class __TwigTemplate_%x extends Template
|
||||
return "layout.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array \$context, array \$blocks = [])
|
||||
protected function doDisplay(array \$context, array \$blocks = []): iterable
|
||||
{
|
||||
\$macros = \$this->macros;
|
||||
// line 2
|
||||
@@ -273,7 +273,7 @@ class __TwigTemplate_%x extends Template
|
||||
return \$this->loadTemplate(((true) ? ("foo") : ("foo")), "foo.twig", 2);
|
||||
}
|
||||
|
||||
protected function doDisplay(array \$context, array \$blocks = [])
|
||||
protected function doDisplay(array \$context, array \$blocks = []): iterable
|
||||
{
|
||||
\$macros = \$this->macros;
|
||||
// line 4
|
||||
|
||||
Reference in New Issue
Block a user