1--TEST--
2GH-15419: Readonly classes may not declare properties with hooks
3--FILE--
4<?php
5
6readonly class C {
7    public int $prop { set => $value; }
8}
9
10?>
11--EXPECTF--
12Fatal error: Hooked properties cannot be readonly in %s on line %d
13