1--TEST-- 2Class constants cannot be readonly 3--FILE-- 4<?php 5 6class Test { 7 readonly const X = 1; 8} 9 10?> 11--EXPECTF-- 12Fatal error: Cannot use the readonly modifier on a class constant in %s on line %d 13