Add void return type hint even in tests

This commit is contained in:
Fabien Potencier
2026-07-12 13:43:08 +02:00
parent 71badee960
commit 9c6d76b61c
129 changed files with 697 additions and 736 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ class IncludeNode extends Node implements NodeOutputInterface, CoercesChildrenTo
/**
* @return void
*/
protected function addGetTemplate(Compiler $compiler/* , string $template = '' */)
protected function addGetTemplate(Compiler $compiler/* , string $template = '' */): void
{
$compiler
->raw('$this->load(')
@@ -96,7 +96,7 @@ class IncludeNode extends Node implements NodeOutputInterface, CoercesChildrenTo
/**
* @return void
*/
protected function addTemplateArguments(Compiler $compiler)
protected function addTemplateArguments(Compiler $compiler): void
{
if (!$this->hasNode('variables')) {
$compiler->raw(false === $this->getAttribute('only') ? '$context' : '[]');