mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-13 07:15:51 +00:00
Add more types to Template class and compiled templates
This commit is contained in:
committed by
Fabien Potencier
parent
22abdfafae
commit
7e52a68097
@@ -32,7 +32,10 @@ class BlockNode extends Node
|
||||
{
|
||||
$compiler
|
||||
->addDebugInfo($this)
|
||||
->write(\sprintf("public function block_%s(\$context, array \$blocks = [])\n", $this->getAttribute('name')), "{\n")
|
||||
->write("/**\n")
|
||||
->write(" * @return iterable<string>\n")
|
||||
->write(" */\n")
|
||||
->write(\sprintf("public function block_%s(array \$context, array \$blocks = []): iterable\n", $this->getAttribute('name')), "{\n")
|
||||
->indent()
|
||||
->write("\$macros = \$this->macros;\n")
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user