Skip to content

Commit 12ae79a

Browse files
committed
Adjust expected error message to PHP 8.4-dev
1 parent 8ba8a15 commit 12ae79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function can_be_assigned_via_reflection() {
151151
Assert::equals('Test', $i->fixture);
152152
}
153153

154-
#[Test, Expect(class: Error::class, message: '/Cannot (initialize readonly|modify protected\(set\)) property .+fixture/')]
154+
#[Test, Expect(class: Error::class, message: '/Cannot (initialize readonly|modify protected\(set\) readonly) property .+fixture/')]
155155
public function cannot_initialize_from_outside() {
156156
$t= $this->declare('class %T {
157157
public readonly string $fixture;

0 commit comments

Comments
 (0)