added type hints

This commit is contained in:
Fabien Potencier
2019-03-19 14:08:46 +01:00
parent 3ada819420
commit 54cec4e3b8
141 changed files with 519 additions and 860 deletions
+1 -1
View File
@@ -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);