Adding statement to Class Method containing Nop ----- stmts[0]->stmts[] = new Stmt\Expression(new Node\Expr\Variable('foo')); ----- stmts[0]->stmts[] = new Stmt\Expression(new Node\Expr\Variable('foo')); ----- stmts[0]->stmts[0]->setAttribute('comments', [new Comment("/* I'm a new comment */")]); ----- stmts[0]->stmts[0]->setAttribute('comments', [new Comment("// I'm a new comment\n")]); -----