We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a4c4d8 commit bef077dCopy full SHA for bef077d
1 file changed
src/Rules/PHPUnit/AssertEqualsIsDiscouragedRule.php
@@ -56,8 +56,7 @@ public function processNode(Node $node, Scope $scope): array
56
}
57
if (
58
($leftType instanceof FloatType && $rightType instanceof FloatType)
59
- &&
60
- count($node->args) < 4 // is not using delta for comparing floats
+ && count($node->args) < 4 // is not using delta for comparing floats
61
) {
62
return [
63
'You should use assertSame instead of assertEquals, because both values are of the same type "float" and you are not using $delta argument',
0 commit comments