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