Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb7dec0

Browse files
committed
patch
1 parent 8c4d352 commit eb7dec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Validator/Constraints/DivisibleByValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ protected function compareValues($value1, $value2)
4242
if (!$remainder = fmod($value1, $value2)) {
4343
return true;
4444
}
45-
if (is_float($value2) && $value2 !== \INF) {
45+
if (\is_float($value2) && \INF !== $value2) {
4646
$quotient = $value1 / $value2;
47-
$rounded = round($quotient);
47+
$rounded = round($quotient);
4848

4949
return sprintf('%.12e', $quotient) === sprintf('%.12e', $rounded);
5050
}

0 commit comments

Comments
 (0)