We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a3f8d commit a3536f5Copy full SHA for a3536f5
src/test/php/lang/ast/syntax/php/unittest/RecordsTest.class.php
@@ -49,7 +49,9 @@ public function can_declare_field_modifiers() {
49
#[Test]
50
public function can_have_readonly_fields() {
51
$t= $this->declare('record %T(public readonly string $name) { }');
52
- Assert::equals(MODIFIER_PUBLIC | MODIFIER_READONLY, $t->property('name')->modifiers()->bits());
+ $modifiers= $t->property('name')->modifiers();
53
+
54
+ Assert::true($modifiers->isPublic() && $modifiers->isReadonly());
55
}
56
57
#[Test, Expect(class: Error::class, message: '/Cannot modify readonly property .+name/')]
0 commit comments