Skip to content

Commit f45d5e5

Browse files
authored
Merge pull request #1 from iursevla/iursevla-fix-maximum
Fix wrong error reported when the value is smaller than the maximum.
2 parents 06186e5 + b5aac5b commit f45d5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ private function processNumeric($data, $path)
361361
} else {
362362
if ($data > $this->maximum) {
363363
$this->fail(new NumericException(
364-
'Value less than ' . $this->minimum . ' expected, ' . $data . ' received',
364+
'Value less than ' . $this->maximum . ' expected, ' . $data . ' received',
365365
NumericException::MAXIMUM), $path);
366366
}
367367
}

0 commit comments

Comments
 (0)