We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4857b6a commit e14567bCopy full SHA for e14567b
src/Rules/Operators/InvalidComparisonOperationRule.php
@@ -62,7 +62,7 @@ public function processNode(Node $node, Scope $scope): array
62
63
$isLeftNumberType = $this->isNumberType($scope, $node->left);
64
$isRightNumberType = $this->isNumberType($scope, $node->right);
65
- if (($isLeftNumberType && $isRightNumberType) || (!$isLeftNumberType && !$isRightNumberType)) {
+ if ($isLeftNumberType === $isRightNumberType) {
66
return [];
67
}
68
0 commit comments