Skip to content

Commit c6269ae

Browse files
committed
only export bool type
1 parent 76140ae commit c6269ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchema/Constraints/BaseConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function addError(ConstraintError $constraint, JsonPointer $path = null,
5353
'pointer' => ltrim(strval($path ?: new JsonPointer('')), '#'),
5454
'message' => ucfirst(vsprintf($message, array_map(function ($val) {
5555
if (is_scalar($val)) {
56-
return var_export($val, true);
56+
return is_bool ($val) ? var_export($val, true) : $val;
5757
}
5858

5959
return json_encode($val);

0 commit comments

Comments
 (0)