Skip to content

Commit 98353d0

Browse files
committed
fix: Reset schema constraint after if evaluation
1 parent 37fb6b3 commit 98353d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/JsonSchema/Constraints/Drafts/Draft07/IfThenElseConstraint.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function check(&$value, $schema = null, ?JsonPointer $path = null, $i = n
3434
if (!is_bool($ifSchema)) {
3535
$schemaConstraint->check($value, $ifSchema, $path, $i);
3636
$meetsIfConditions = $schemaConstraint->isValid();
37+
$schemaConstraint->reset();
3738
} else {
3839
$meetsIfConditions = $ifSchema;
3940
}

0 commit comments

Comments
 (0)