--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 unexpected with changing traits. --FILE-- --EXPECT-- object(SubclassClassicInheritance)#1 (1) { ["hello"]=> int(0) } object(SubclassA)#2 (1) { ["hello"]=> int(0) } object(SubclassB)#3 (1) { ["hello"]=> int(0) }