Skip to content

Commit d1f1429

Browse files
author
Greg Bowler
authored
Grammar fix (#39)
* ci: scrutinizer simplification * tweak: grammar fix
1 parent 4f38388 commit d1f1429

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Rule/MaxLength.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ public function isValid(Element $element, string $value, array $inputKvp):bool {
1515

1616
public function getHint(Element $element, string $value):string {
1717
$maxLength = $element->getAttribute("maxlength");
18-
return "This field's value must contain $maxLength characters or less";
18+
return "This field's value must not contain more than $maxLength characters";
1919
}
2020
}

test/phpunit/Rule/MaxLengthTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testMaxLength() {
3939
catch(ValidationException $exception) {
4040
$errorList = iterator_to_array($validator->getLastErrorList());
4141
self::assertContains(
42-
"This field's value must contain 120 characters or less",
42+
"This field's value must not contain more than 120 characters",
4343
$errorList["tweet"]
4444
);
4545
}

0 commit comments

Comments
 (0)