Skip to content

Commit 2aea4f6

Browse files
committed
Fix keyword name maxContains
1 parent 1cec9a5 commit 2aea4f6

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)