Skip to content

Commit f55a373

Browse files
committed
Fix readonly tests
1 parent 8a578bb commit f55a373

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"keywords": ["module", "xp"],
88
"require" : {
99
"xp-framework/core": "^12.0 | ^11.6 | ^10.16",
10-
"xp-framework/reflection": "^3.0 | ^2.13",
10+
"xp-framework/reflection": "^3.2 | ^2.15",
1111
"xp-framework/ast": "^11.1",
1212
"php" : ">=7.4.0"
1313
},

src/test/php/lang/ast/unittest/emit/ReadonlyTest.class.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function class_declaration() {
2727
}');
2828

2929
Assert::equals(
30-
'public readonly int $fixture',
30+
'public readonly protected(set) int $fixture',
3131
$t->property('fixture')->toString()
3232
);
3333
}
@@ -39,7 +39,7 @@ public function property_declaration() {
3939
}');
4040

4141
Assert::equals(
42-
'public readonly int $fixture',
42+
'public readonly protected(set) int $fixture',
4343
$t->property('fixture')->toString()
4444
);
4545
}
@@ -51,7 +51,7 @@ public function __construct(public string $fixture) { }
5151
}');
5252

5353
Assert::equals(
54-
'public readonly string $fixture',
54+
'public readonly protected(set) string $fixture',
5555
$t->property('fixture')->toString()
5656
);
5757
Assert::equals('Test', $t->newInstance('Test')->fixture);
@@ -64,7 +64,7 @@ public function __construct(public readonly string $fixture) { }
6464
}');
6565

6666
Assert::equals(
67-
'public readonly string $fixture',
67+
'public readonly protected(set) string $fixture',
6868
$t->property('fixture')->toString()
6969
);
7070
Assert::equals('Test', $t->newInstance('Test')->fixture);

0 commit comments

Comments
 (0)