Skip to content

Commit b6e4541

Browse files
committed
fix: move addCheckedProperties before early return #148
1 parent 7128277 commit b6e4541

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Keywords/PropertiesKeyword.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function validate(ValidationContext $context, Schema $schema): ?Validatio
9393
}
9494
}
9595

96+
$context->addCheckedProperties($checked);
9697
$context->addEvaluatedProperties($evaluated);
9798

9899
if (!$errors->isEmpty()) {
@@ -102,8 +103,6 @@ public function validate(ValidationContext $context, Schema $schema): ?Validatio
102103
}
103104
unset($errors);
104105

105-
$context->addCheckedProperties($checked);
106-
107106
return null;
108107
}
109-
}
108+
}

0 commit comments

Comments
 (0)