1--TEST--
2Declaring static property for a readonly class is forbidden
3--FILE--
4<?php
5
6readonly class Foo
7{
8    public static int $bar;
9}
10
11?>
12--EXPECTF--
13Fatal error: Static property Foo::$bar cannot be readonly in %s on line %d
14