We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37810e9 commit dd80ff0Copy full SHA for dd80ff0
src/JsonSchema/Constraints/EnumConstraint.php
@@ -41,6 +41,6 @@ public function check($element, $schema = null, $path = null, $i = null)
41
}
42
43
44
- $this->addError($path, "Does not have a value in the enumeration " . print_r($schema->enum, true), 'enum', array('enum' => $schema->enum,));
+ $this->addError($path, "Does not have a value in the enumeration " . json_encode($schema->enum), 'enum', array('enum' => $schema->enum,));
45
46
0 commit comments