Latte\Macros\MacroSet::checkExtraArgs PHP Method

checkExtraArgs() protected method

protected checkExtraArgs ( MacroNode $node )
$node Latte\MacroNode
    protected function checkExtraArgs(MacroNode $node)
    {
        if ($node->tokenizer->isNext()) {
            $args = Latte\Runtime\Filters::truncate($node->tokenizer->joinAll(), 20);
            trigger_error("Unexpected arguments '{$args}' in " . $node->getNotation());
        }
    }