function MethodCallExpression::__construct
Overrides Node::__construct
File
-
vendor/
twig/ twig/ src/ Node/ Expression/ MethodCallExpression.php, line 18
Class
Namespace
Twig\Node\ExpressionCode
public function __construct(AbstractExpression $node, string $method, ArrayExpression $arguments, int $lineno) {
trigger_deprecation('twig/twig', '3.15', 'The "%s" class is deprecated, use "%s" instead.', __CLASS__, MacroReferenceExpression::class);
parent::__construct([
'node' => $node,
'arguments' => $arguments,
], [
'method' => $method,
'safe' => false,
'is_defined_test' => false,
], $lineno);
if ($node instanceof NameExpression) {
$node->setAttribute('always_defined', true);
}
}