mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-06 03:47:04 +00:00
Add void return type hint even in tests
This commit is contained in:
@@ -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' : '[]');
|
||||
|
||||
Reference in New Issue
Block a user