abc1 ----- exprs[0]->left->right->value = 42; ----- name = new Node\Identifier('bar'); ----- byRef = true; ----- byRef = true; ----- stmts[0]; $stmts[0]->stmts[0] = $stmts[1]; $stmts[1] = $tmp; ----- stmts[0]; $stmts[1]->stmts[0] = $stmts[2]; $stmts[2] = $tmp; // Same test, but also removing first statement, triggering fallback array_splice($stmts, 0, 1, []); ----- exprs[0] = new Expr\ConstFetch(new Node\Name('C')); ----- exprs[0]->parts[0] = new Expr\Variable('bar'); $stmts[1]->exprs[0]->parts[0] = new Expr\Variable('bar'); -----