File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ public function equals(Type $type): bool
53
53
return false ;
54
54
}
55
55
56
- return $ this ->getClassName () === $ type ->getClassName ()
57
- && $ this ->enumCaseName === $ type ->enumCaseName ;
56
+ return $ this ->enumCaseName === $ type ->enumCaseName &&
57
+ $ this ->getClassName () === $ type ->getClassName () ;
58
58
}
59
59
60
60
public function accepts (Type $ type , bool $ strictTypes ): TrinaryLogic
@@ -71,8 +71,7 @@ public function isSuperTypeOf(Type $type): TrinaryLogic
71
71
{
72
72
if ($ type instanceof self) {
73
73
return TrinaryLogic::createFromBoolean (
74
- $ this ->getClassName () === $ type ->getClassName ()
75
- && $ this ->enumCaseName === $ type ->enumCaseName ,
74
+ $ this ->enumCaseName === $ type ->enumCaseName && $ this ->getClassName () === $ type ->getClassName (),
76
75
);
77
76
}
78
77
You can’t perform that action at this time.
0 commit comments