1 2 3 4 5 6 7 8 9 10 11 12
--TEST-- Trying to create a constant on Trait --FILE-- <?php trait foo { const a = 1; } ?> --EXPECTF-- Fatal error: Traits cannot have constants in %s on line %d