mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-06 11:57:11 +00:00
Add return type annotations on Twig 3 to prepare Twig 4
This commit is contained in:
committed by
Fabien Potencier
parent
8689d46906
commit
82be13429c
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user