mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-14 07:46:02 +00:00
Add more types to Template class and compiled templates
This commit is contained in:
committed by
Fabien Potencier
parent
22abdfafae
commit
7e52a68097
@@ -318,7 +318,7 @@ final class ModuleNode extends Node
|
||||
protected function compileDisplay(Compiler $compiler)
|
||||
{
|
||||
$compiler
|
||||
->write("protected function doDisplay(array \$context, array \$blocks = [])\n", "{\n")
|
||||
->write("protected function doDisplay(array \$context, array \$blocks = []): iterable\n", "{\n")
|
||||
->indent()
|
||||
->write("\$macros = \$this->macros;\n")
|
||||
->subcompile($this->getNode('display_start'))
|
||||
|
||||
Reference in New Issue
Block a user