Skip to content

Commit 6e0a177

Browse files
author
Peter Mead
committed
Don't cast multipleOf to be an integer for the error message
While this isn't the best way to deal with multipleOf being either an integer or a float it should suffice for now.
1 parent dfdcb5b commit 6e0a177

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)