@@ -82,31 +82,19 @@ public function processNode(Node $node, Scope $scope): array
82
82
&& !$ leftType ->isString ()->no ()
83
83
&& !$ rightType ->isConstantScalarValue ()->yes ()
84
84
&& !$ rightType ->isString ()->no ()
85
- && TrinaryLogic::extremeIdentity ($ leftType ->isLowercaseString (), $ rightType ->isLowercaseString ())->maybe ()
85
+ && (
86
+ TrinaryLogic::extremeIdentity ($ leftType ->isLowercaseString (), $ rightType ->isLowercaseString ())->maybe ()
87
+ || TrinaryLogic::extremeIdentity ($ leftType ->isUppercaseString (), $ rightType ->isUppercaseString ())->maybe ()
88
+ )
86
89
) || (
87
90
$ rightType ->isConstantScalarValue ()->yes ()
88
91
&& !$ rightType ->isString ()->no ()
89
92
&& !$ leftType ->isConstantScalarValue ()->yes ()
90
93
&& !$ leftType ->isString ()->no ()
91
- && TrinaryLogic::extremeIdentity ($ leftType ->isLowercaseString (), $ rightType ->isLowercaseString ())->maybe ()
92
- )
93
- ) {
94
- $ verbosity = VerbosityLevel::precise ();
95
- }
96
-
97
- if (
98
- (
99
- $ leftType ->isConstantScalarValue ()->yes ()
100
- && !$ leftType ->isString ()->no ()
101
- && !$ rightType ->isConstantScalarValue ()->yes ()
102
- && !$ rightType ->isString ()->no ()
103
- && TrinaryLogic::extremeIdentity ($ leftType ->isUppercaseString (), $ rightType ->isUppercaseString ())->maybe ()
104
- ) || (
105
- $ rightType ->isConstantScalarValue ()->yes ()
106
- && !$ rightType ->isString ()->no ()
107
- && !$ leftType ->isConstantScalarValue ()->yes ()
108
- && !$ leftType ->isString ()->no ()
109
- && TrinaryLogic::extremeIdentity ($ leftType ->isUppercaseString (), $ rightType ->isUppercaseString ())->maybe ()
94
+ && (
95
+ TrinaryLogic::extremeIdentity ($ leftType ->isLowercaseString (), $ rightType ->isLowercaseString ())->maybe ()
96
+ || TrinaryLogic::extremeIdentity ($ leftType ->isUppercaseString (), $ rightType ->isUppercaseString ())->maybe ()
97
+ )
110
98
)
111
99
) {
112
100
$ verbosity = VerbosityLevel::precise ();
0 commit comments