Skip to content

Commit d414acd

Browse files
authored
Merge pull request #282 from bustbr/master
fix instancing wrong type, breaks inheritance
2 parents c627c37 + e2d31ed commit d414acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchema/Constraints/TypeConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function check($value = null, $schema = null, $path = null, $i = null)
4848
$validatedOneType = false;
4949
$errors = array();
5050
foreach ($type as $tp) {
51-
$validator = new TypeConstraint($this->checkMode);
51+
$validator = new static($this->checkMode);
5252
$subSchema = new \stdClass();
5353
$subSchema->type = $tp;
5454
$validator->check($value, $subSchema, $path, null);

0 commit comments

Comments
 (0)