@@ -27,7 +27,7 @@ public function class_declaration() {
27
27
} ' );
28
28
29
29
Assert::equals (
30
- 'public readonly int $fixture ' ,
30
+ 'public readonly protected(set) int $fixture ' ,
31
31
$ t ->property ('fixture ' )->toString ()
32
32
);
33
33
}
@@ -39,7 +39,7 @@ public function property_declaration() {
39
39
} ' );
40
40
41
41
Assert::equals (
42
- 'public readonly int $fixture ' ,
42
+ 'public readonly protected(set) int $fixture ' ,
43
43
$ t ->property ('fixture ' )->toString ()
44
44
);
45
45
}
@@ -51,7 +51,7 @@ public function __construct(public string $fixture) { }
51
51
} ' );
52
52
53
53
Assert::equals (
54
- 'public readonly string $fixture ' ,
54
+ 'public readonly protected(set) string $fixture ' ,
55
55
$ t ->property ('fixture ' )->toString ()
56
56
);
57
57
Assert::equals ('Test ' , $ t ->newInstance ('Test ' )->fixture );
@@ -64,7 +64,7 @@ public function __construct(public readonly string $fixture) { }
64
64
} ' );
65
65
66
66
Assert::equals (
67
- 'public readonly string $fixture ' ,
67
+ 'public readonly protected(set) string $fixture ' ,
68
68
$ t ->property ('fixture ' )->toString ()
69
69
);
70
70
Assert::equals ('Test ' , $ t ->newInstance ('Test ' )->fixture );
0 commit comments