mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
Update Twig to v2.15.4
This commit is contained in:
@@ -21,7 +21,7 @@ use Twig\Compiler;
|
||||
*/
|
||||
class BlockNode extends Node
|
||||
{
|
||||
public function __construct($name, \Twig_NodeInterface $body, $lineno, $tag = null)
|
||||
public function __construct(string $name, Node $body, int $lineno, string $tag = null)
|
||||
{
|
||||
parent::__construct(['body' => $body], ['name' => $name], $lineno, $tag);
|
||||
}
|
||||
@@ -32,6 +32,7 @@ class BlockNode extends Node
|
||||
->addDebugInfo($this)
|
||||
->write(sprintf("public function block_%s(\$context, array \$blocks = [])\n", $this->getAttribute('name')), "{\n")
|
||||
->indent()
|
||||
->write("\$macros = \$this->macros;\n")
|
||||
;
|
||||
|
||||
$compiler
|
||||
|
Reference in New Issue
Block a user