Skip to content

Commit e14567b

Browse files
Simplify
1 parent 4857b6a commit e14567b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Operators/InvalidComparisonOperationRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function processNode(Node $node, Scope $scope): array
6262

6363
$isLeftNumberType = $this->isNumberType($scope, $node->left);
6464
$isRightNumberType = $this->isNumberType($scope, $node->right);
65-
if (($isLeftNumberType && $isRightNumberType) || (!$isLeftNumberType && !$isRightNumberType)) {
65+
if ($isLeftNumberType === $isRightNumberType) {
6666
return [];
6767
}
6868

0 commit comments

Comments
 (0)