@@ -40,7 +40,7 @@ public function setUp(): void
4040 */
4141 public function it_generates_property_with_doc_block (): void
4242 {
43- $ property = new PropertyGenerator ('sourceFolder ' , 'string ' );
43+ $ property = new PropertyGenerator ('sourceFolder ' , 'string ' , null , false );
4444 $ property ->setDocBlockComment ('source folder ' );
4545
4646 $ expectedOutput = <<<'EOF'
@@ -62,7 +62,7 @@ public function it_generates_property_with_doc_block(): void
6262 */
6363 public function it_generates_property_with_overridden_doc_block (): void
6464 {
65- $ property = new PropertyGenerator ('sourceFolder ' , 'string ' );
65+ $ property = new PropertyGenerator ('sourceFolder ' , 'string ' , null , false );
6666 $ property ->setDocBlockComment ('source folder ' );
6767 $ property ->overrideDocBlock (new DocBlock ('Awesome ' ));
6868
@@ -92,7 +92,7 @@ public function it_generates_property_with_array_type_doc_block(): void
9292/**
9393 * @var array<string, \stdClass>
9494 */
95- private $items;
95+ private array $items;
9696EOF;
9797
9898 $ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ property ->generate ()]));
@@ -130,7 +130,7 @@ public function it_generates_property_with_long_doc_block(): void
130130 *
131131 * @var string
132132 */
133- private $sourceFolder;
133+ private string $sourceFolder;
134134EOF;
135135
136136 $ this ->assertSame ($ expectedOutput , $ this ->printer ->prettyPrintFile ([$ property ->generate ()]));
0 commit comments