mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-06 20:07:39 +00:00
Restore void return type compatibility for extension points
This commit is contained in:
@@ -79,7 +79,10 @@ class IncludeNode extends Node implements NodeOutputInterface, CoercesChildrenTo
|
||||
}
|
||||
}
|
||||
|
||||
protected function addGetTemplate(Compiler $compiler/* , string $template = '' */): void
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function addGetTemplate(Compiler $compiler/* , string $template = '' */)
|
||||
{
|
||||
$compiler
|
||||
->raw('$this->load(')
|
||||
@@ -90,7 +93,10 @@ class IncludeNode extends Node implements NodeOutputInterface, CoercesChildrenTo
|
||||
;
|
||||
}
|
||||
|
||||
protected function addTemplateArguments(Compiler $compiler): void
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function addTemplateArguments(Compiler $compiler)
|
||||
{
|
||||
if (!$this->hasNode('variables')) {
|
||||
$compiler->raw(false === $this->getAttribute('only') ? '$context' : '[]');
|
||||
|
||||
Reference in New Issue
Block a user