mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-25 13:16:31 +00:00
added type hints
This commit is contained in:
@@ -21,7 +21,7 @@ class FunctionExpression extends CallExpression
|
||||
parent::__construct(['arguments' => $arguments], ['name' => $name, 'is_defined_test' => false], $lineno);
|
||||
}
|
||||
|
||||
public function compile(Compiler $compiler)
|
||||
public function compile(Compiler $compiler): void
|
||||
{
|
||||
$name = $this->getAttribute('name');
|
||||
$function = $compiler->getEnvironment()->getFunction($name);
|
||||
|
||||
Reference in New Issue
Block a user