Add return type annotations on Twig 3 to prepare Twig 4

This commit is contained in:
Simon André
2025-01-05 16:04:43 +01:00
committed by Fabien Potencier
parent 8689d46906
commit 82be13429c
31 changed files with 225 additions and 20 deletions
+6
View File
@@ -78,6 +78,9 @@ class IncludeNode extends Node implements NodeOutputInterface
}
}
/**
* @return void
*/
protected function addGetTemplate(Compiler $compiler/* , string $template = '' */)
{
$compiler
@@ -91,6 +94,9 @@ class IncludeNode extends Node implements NodeOutputInterface
;
}
/**
* @return void
*/
protected function addTemplateArguments(Compiler $compiler)
{
if (!$this->hasNode('variables')) {