1Adding property type
2-----
3<?php
4
5class A
6{
7
8    public $a
9    = 1;
10}
11-----
12$stmts[0]->stmts[0]->type = new Node\Identifier('string');
13-----
14<?php
15
16class A
17{
18
19    public string $a
20    = 1;
21}
22-----
23<?php
24
25class A
26{
27    public
28        $b;
29}
30-----
31$stmts[0]->stmts[0]->type = new Node\Identifier('int');
32-----
33<?php
34
35class A
36{
37    public
38        int $b;
39}
40