File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function __construct(
25
25
26
26
public function changeBaseClass (ClassReflection $ classReflection ): StaticType
27
27
{
28
- return new self ($ classReflection , $ this ->getSubtractedType ());
28
+ return new self ($ classReflection , $ this ->getSubtractedType (), $ this -> traitReflection );
29
29
}
30
30
31
31
public function describe (VerbosityLevel $ level ): string
@@ -66,7 +66,7 @@ public function changeSubtractedType(?Type $subtractedType): Type
66
66
{
67
67
$ type = parent ::changeSubtractedType ($ subtractedType );
68
68
if ($ type instanceof parent) {
69
- return new self ($ type ->getClassReflection (), $ subtractedType );
69
+ return new self ($ type ->getClassReflection (), $ subtractedType, $ this -> traitReflection );
70
70
}
71
71
72
72
return $ type ;
@@ -93,6 +93,7 @@ public function traverse(callable $cb): Type
93
93
return new self (
94
94
$ this ->getClassReflection (),
95
95
$ subtractedType ,
96
+ $ this ->traitReflection ,
96
97
);
97
98
}
98
99
You can’t perform that action at this time.
0 commit comments