1--TEST--
2Method cannot be readonly
3--FILE--
4<?php
5
6class Test {
7    readonly function test() {}
8}
9
10?>
11--EXPECTF--
12Fatal error: Cannot use the readonly modifier on a method in %s on line %d
13