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 'readonly' as method modifier in %s on line %d
13