--TEST-- Handling of public fields with traits needs to have same semantics as with normal inheritance, however, we do add strict warnings since it is easier to run into something unexpeted with changing traits. --FILE-- --EXPECTF-- object(SubclassClassicInheritance)#1 (1) { ["hello"]=> int(0) } object(SubclassA)#2 (1) { ["hello"]=> int(0) } object(SubclassB)#3 (1) { ["hello"]=> int(0) }