Skip to content

Commit ebbd7c7

Browse files
committed
Reduces encoding in acceptable types.
1 parent 0990b48 commit ebbd7c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Blueprint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function validate() {
6161
$type = $type instanceof Atom ? $type->getValue() : $type;
6262
if (!in_array($type, $this->accepted_types)) {
6363
$errors[] = new Error(
64-
"`$type` (".get_class($this->value).") is not a valid `{$this->type_prop}` in `".get_class($this).'`. Acceptable types are `'.json_encode($this->accepted_types).'`'
64+
"`$type` (".get_class($this->value).") is not a valid `{$this->type_prop}` in `".get_class($this).'`. Acceptable types are `'.implode(', ', $this->accepted_types).'`'
6565
);
6666
}
6767
}

0 commit comments

Comments
 (0)