Skip to content

Commit dcfc222

Browse files
committed
Start error messages with a capital letter
1 parent 09d2fcd commit dcfc222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonSchema/Constraints/SchemaConstraint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function check(&$element, $schema = null, JsonPointer $path = null, $i =
4848
// schema is defined, assume self::DEFAULT_SCHEMA_SPEC (currently draft-04).
4949
if ($this->factory->getConfig(self::CHECK_MODE_VALIDATE_SCHEMA)) {
5050
if (!$this->getTypeCheck()->isObject($validationSchema)) {
51-
throw new RuntimeException('cannot validate non-object schema');
51+
throw new RuntimeException('Cannot validate non-object schema');
5252
}
5353
if ($this->getTypeCheck()->propertyExists($validationSchema, '$schema')) {
5454
$schemaSpec = $this->getTypeCheck()->propertyGet($validationSchema, '$schema');
@@ -76,7 +76,7 @@ public function check(&$element, $schema = null, JsonPointer $path = null, $i =
7676
$validator->validate($validationSchema, $schemaStorage->getSchema($schemaSpec));
7777
if (!$validator->isValid()) {
7878
$this->addErrors($validator->getErrors());
79-
$this->addError($path, 'schema is not valid', 'schema');
79+
$this->addError($path, 'Schema is not valid', 'schema');
8080
}
8181
}
8282

0 commit comments

Comments
 (0)