Skip to content

Commit

Permalink
Merge pull request #471 from AzuraGroup/multipleOf-float-error-message
Browse files Browse the repository at this point in the history
Don't cast multipleOf to be an integer for the error message
  • Loading branch information
bighappyface authored May 23, 2018
2 parents d30410c + 6e0a177 commit e0b253f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonSchema/ConstraintError.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getMessage()
self::MISSING_MAXIMUM => 'Use of exclusiveMaximum requires presence of maximum',
self::MISSING_MINIMUM => 'Use of exclusiveMinimum requires presence of minimum',
/*self::MISSING_ERROR => 'Used for tests; this error is deliberately commented out',*/
self::MULTIPLE_OF => 'Must be a multiple of %d',
self::MULTIPLE_OF => 'Must be a multiple of %s',
self::NOT => 'Matched a schema which it should not',
self::ONE_OF => 'Failed to match exactly one schema',
self::REQUIRED => 'The property %s is required',
Expand Down

0 comments on commit e0b253f

Please sign in to comment.