Skip to content
Discussion options

You must be logged in to vote

Resolved !

i was wrong creating the FuncCall argument.

i passed a Variable instead of an Arg

So I fixed

 $new_argo_0 = new Variable('date_as_string');

into

    $new_argo_0 =  new Arg(
        new Variable('date_as_string')
    );

Now I can add the new assignment before current node (where current node is already changed !)

    $this->nodesToAddCollector->addNodeBeforeNode(
        $new_assign_node,
        $node,
    );

    return $node;

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Mirko-Tebaldi
Comment options

@samsonasik
Comment options

@Mirko-Tebaldi
Comment options

Comment options

You must be logged in to vote
1 reply
@TomasVotruba
Comment options

Answer selected by Mirko-Tebaldi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants