@@ -40,7 +40,7 @@ public function setUp(): void
40
40
*/
41
41
public function it_generates_property_with_doc_block (): void
42
42
{
43
- $ property = new PropertyGenerator ('sourceFolder ' , 'string ' );
43
+ $ property = new PropertyGenerator ('sourceFolder ' , 'string ' , null , false );
44
44
$ property ->setDocBlockComment ('source folder ' );
45
45
46
46
$ expectedOutput = <<<'EOF'
@@ -62,7 +62,7 @@ public function it_generates_property_with_doc_block(): void
62
62
*/
63
63
public function it_generates_property_with_overridden_doc_block (): void
64
64
{
65
- $ property = new PropertyGenerator ('sourceFolder ' , 'string ' );
65
+ $ property = new PropertyGenerator ('sourceFolder ' , 'string ' , null , false );
66
66
$ property ->setDocBlockComment ('source folder ' );
67
67
$ property ->overrideDocBlock (new DocBlock ('Awesome ' ));
68
68
@@ -92,7 +92,7 @@ public function it_generates_property_with_array_type_doc_block(): void
92
92
/**
93
93
* @var array<string, \stdClass>
94
94
*/
95
- private $items;
95
+ private array $items;
96
96
EOF;
97
97
98
98
$ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ property ->generate ()]));
@@ -130,7 +130,7 @@ public function it_generates_property_with_long_doc_block(): void
130
130
*
131
131
* @var string
132
132
*/
133
- private $sourceFolder;
133
+ private string $sourceFolder;
134
134
EOF;
135
135
136
136
$ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ property ->generate ()]));
0 commit comments