Skip to content

Commit e0b253f

Browse files
authored
Merge pull request #471 from AzuraGroup/multipleOf-float-error-message
Don't cast multipleOf to be an integer for the error message
2 parents d30410c + 6e0a177 commit e0b253f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchema/ConstraintError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function getMessage()
8888
self::MISSING_MAXIMUM => 'Use of exclusiveMaximum requires presence of maximum',
8989
self::MISSING_MINIMUM => 'Use of exclusiveMinimum requires presence of minimum',
9090
/*self::MISSING_ERROR => 'Used for tests; this error is deliberately commented out',*/
91-
self::MULTIPLE_OF => 'Must be a multiple of %d',
91+
self::MULTIPLE_OF => 'Must be a multiple of %s',
9292
self::NOT => 'Matched a schema which it should not',
9393
self::ONE_OF => 'Failed to match exactly one schema',
9494
self::REQUIRED => 'The property %s is required',

0 commit comments

Comments
 (0)