Skip to content

Commit

Permalink
tweak: grammar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Feb 28, 2023
1 parent 53ae913 commit 9be2ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rule/MaxLength.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public function isValid(Element $element, string $value, array $inputKvp):bool {

public function getHint(Element $element, string $value):string {
$maxLength = $element->getAttribute("maxlength");
return "This field's value must contain $maxLength characters or less";
return "This field's value must not contain more than $maxLength characters";
}
}
2 changes: 1 addition & 1 deletion test/phpunit/Rule/MaxLengthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function testMaxLength() {
catch(ValidationException $exception) {
$errorList = iterator_to_array($validator->getLastErrorList());
self::assertContains(
"This field's value must contain 120 characters or less",
"This field's value must not contain more than 120 characters",
$errorList["tweet"]
);
}
Expand Down

0 comments on commit 9be2ee8

Please sign in to comment.