$node]; if (null !== $arguments) { $nodes['arguments'] = $arguments; } parent::__construct($nodes, ['name' => $name, 'type' => 'test'], $lineno); } public function compile(Compiler $compiler): void { $test = $compiler->getEnvironment()->getTest($this->getAttribute('name')); $this->setAttribute('arguments', $test->getArguments()); $this->setAttribute('callable', $test->getCallable()); $this->setAttribute('is_variadic', $test->isVariadic()); $this->compileCallable($compiler); } }