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 ccd5d63 commit 15f65a2Copy full SHA for 15f65a2
src/Schema/Type/Number.php
@@ -54,7 +54,7 @@ public function validate(mixed $value, callable $fail): void
54
// that has decimal places. (Since the modulo operator converts the multipleOf to int)
55
if (
56
$this->multipleOf !== null &&
57
- $value / $this->multipleOf !== (float) round($value / $this->multipleOf)
+ $value / $this->multipleOf !== round($value / $this->multipleOf)
58
) {
59
$fail(sprintf('must be a multiple of %d', $this->multipleOf));
60
}
0 commit comments