Add more types to Template class and compiled templates

This commit is contained in:
Ruud Kamphuis
2024-08-29 20:21:36 +02:00
committed by Fabien Potencier
parent 22abdfafae
commit 7e52a68097
7 changed files with 30 additions and 26 deletions
+3 -3
View File
@@ -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