1--TEST--
2Cannot replace readonly with readwrite
3--FILE--
4<?php
5
6class A {
7    public readonly int $prop;
8}
9class B extends A {
10    public int $prop;
11}
12
13?>
14--EXPECTF--
15Fatal error: Cannot redeclare readonly property A::$prop as non-readonly B::$prop in %s on line %d
16