Skip to content

Commit

Permalink
Merge pull request #45 from iursevla/master
Browse files Browse the repository at this point in the history
 Fix wrong error reported when the value is smaller than the maximum.
  • Loading branch information
vearutop authored Jun 26, 2018
2 parents 06186e5 + f45d5e5 commit aa5ce40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ private function processNumeric($data, $path)
} else {
if ($data > $this->maximum) {
$this->fail(new NumericException(
'Value less than ' . $this->minimum . ' expected, ' . $data . ' received',
'Value less than ' . $this->maximum . ' expected, ' . $data . ' received',
NumericException::MAXIMUM), $path);
}
}
Expand Down

0 comments on commit aa5ce40

Please # to comment.