From f55a373cb3397abbe9ab63400c8701f5ed29b7ff Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Tue, 27 Aug 2024 20:22:33 +0200 Subject: [PATCH] Fix readonly tests --- composer.json | 2 +- .../php/lang/ast/unittest/emit/ReadonlyTest.class.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index ed40d3f1..7f815af6 100755 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "keywords": ["module", "xp"], "require" : { "xp-framework/core": "^12.0 | ^11.6 | ^10.16", - "xp-framework/reflection": "^3.0 | ^2.13", + "xp-framework/reflection": "^3.2 | ^2.15", "xp-framework/ast": "^11.1", "php" : ">=7.4.0" }, diff --git a/src/test/php/lang/ast/unittest/emit/ReadonlyTest.class.php b/src/test/php/lang/ast/unittest/emit/ReadonlyTest.class.php index 9c8d1db5..a998a7dd 100755 --- a/src/test/php/lang/ast/unittest/emit/ReadonlyTest.class.php +++ b/src/test/php/lang/ast/unittest/emit/ReadonlyTest.class.php @@ -27,7 +27,7 @@ public function class_declaration() { }'); Assert::equals( - 'public readonly int $fixture', + 'public readonly protected(set) int $fixture', $t->property('fixture')->toString() ); } @@ -39,7 +39,7 @@ public function property_declaration() { }'); Assert::equals( - 'public readonly int $fixture', + 'public readonly protected(set) int $fixture', $t->property('fixture')->toString() ); } @@ -51,7 +51,7 @@ public function __construct(public string $fixture) { } }'); Assert::equals( - 'public readonly string $fixture', + 'public readonly protected(set) string $fixture', $t->property('fixture')->toString() ); Assert::equals('Test', $t->newInstance('Test')->fixture); @@ -64,7 +64,7 @@ public function __construct(public readonly string $fixture) { } }'); Assert::equals( - 'public readonly string $fixture', + 'public readonly protected(set) string $fixture', $t->property('fixture')->toString() ); Assert::equals('Test', $t->newInstance('Test')->fixture);