2020 */ 
2121final  class  TraitType extends  ClassLike
2222{
23+ 	use  Traits \ConstantsAware;
2324	use  Traits \MethodsAware;
2425	use  Traits \PropertiesAware;
2526	use  Traits \TraitsAware;
@@ -28,6 +29,7 @@ public function addMember(Method|Property|Constant|TraitUse $member): static
2829	{
2930		$ name$ membergetName ();
3031		[$ type$ nmatch  (true ) {
32+ 			$ memberinstanceof  Constant => ['consts ' , $ name
3133			$ memberinstanceof  Method => ['methods ' , strtolower ($ name
3234			$ memberinstanceof  Property => ['properties ' , $ name
3335			$ memberinstanceof  TraitUse => ['traits ' , $ name
@@ -43,6 +45,7 @@ public function addMember(Method|Property|Constant|TraitUse $member): static
4345	public  function  __clone ()
4446	{
4547		$ clonefn ($ itemclone  $ item
48+ 		$ this consts  = array_map ($ clone$ this consts );
4649		$ this methods  = array_map ($ clone$ this methods );
4750		$ this properties  = array_map ($ clone$ this properties );
4851		$ this traits  = array_map ($ clone$ this traits );
0 commit comments