mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-10 13:55:37 +00:00
added type hints
This commit is contained in:
@@ -25,7 +25,7 @@ class ForLoopNode extends Node
|
||||
parent::__construct([], ['with_loop' => false, 'ifexpr' => false, 'else' => false], $lineno, $tag);
|
||||
}
|
||||
|
||||
public function compile(Compiler $compiler)
|
||||
public function compile(Compiler $compiler): void
|
||||
{
|
||||
if ($this->getAttribute('else')) {
|
||||
$compiler->write("\$context['_iterated'] = true;\n");
|
||||
|
||||
Reference in New Issue
Block a user