File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -231,9 +231,9 @@ public function specifyTypesInCondition(
231
231
$ exprLeftType = $ scope ->getType ($ expr ->left );
232
232
$ exprRightType = $ scope ->getType ($ expr ->right );
233
233
if (
234
- ($ exprLeftType instanceof ConstantType && !$ exprRightType ->equals ($ exprLeftType ) && $ exprRightType ->isSuperTypeOf ($ exprLeftType )->yes ())
235
- || $ exprLeftType instanceof ConstantScalarType
234
+ $ exprLeftType instanceof ConstantScalarType
236
235
|| $ exprLeftType instanceof EnumCaseObjectType
236
+ || ($ exprLeftType instanceof ConstantType && !$ exprRightType ->equals ($ exprLeftType ) && $ exprRightType ->isSuperTypeOf ($ exprLeftType )->yes ())
237
237
) {
238
238
$ types = $ this ->create (
239
239
$ expr ->right ,
@@ -245,9 +245,9 @@ public function specifyTypesInCondition(
245
245
);
246
246
}
247
247
if (
248
- ($ exprRightType instanceof ConstantType && !$ exprLeftType ->equals ($ exprRightType ) && $ exprLeftType ->isSuperTypeOf ($ exprRightType )->yes ())
249
- || $ exprRightType instanceof ConstantScalarType
248
+ $ exprRightType instanceof ConstantScalarType
250
249
|| $ exprRightType instanceof EnumCaseObjectType
250
+ || ($ exprRightType instanceof ConstantType && !$ exprLeftType ->equals ($ exprRightType ) && $ exprLeftType ->isSuperTypeOf ($ exprRightType )->yes ())
251
251
) {
252
252
$ leftType = $ this ->create (
253
253
$ expr ->left ,
You can’t perform that action at this time.
0 commit comments