1--TEST--
2Readonly static property
3--FILE--
4<?php
5
6class Test {
7    public static readonly int $prop;
8}
9
10?>
11--EXPECTF--
12Fatal error: Static property Test::$prop cannot be readonly in %s on line %d
13