Skip to content

Commit 2fed5bd

Browse files
authored
Merge pull request #100 from liborm85/maxcontains-fix
Fix keyword name maxContains
2 parents 1cec9a5 + 2aea4f6 commit 2fed5bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Keywords/ContainsKeyword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function validate(ValidationContext $context, Schema $schema): ?Validatio
127127
}
128128

129129
if (!$isMaxNull && $valid > $this->max) {
130-
return $this->error($schema, $context, 'minContains', 'At most {max} array items must match schema', [
130+
return $this->error($schema, $context, 'maxContains', 'At most {max} array items must match schema', [
131131
'max' => $this->max,
132132
'count' => $valid,
133133
]);

0 commit comments

Comments
 (0)