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