Skip to content

Commit

Permalink
Fix Travis Broken
Browse files Browse the repository at this point in the history
  • Loading branch information
PululuK committed May 29, 2020
1 parent 75d4f74 commit 6836542
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/form/AbstractForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function validate()
$field->addError(
$this->constraintTranslator->translate('required')
);
} elseif (!$this->validateFieldLength($field)) {
} elseif (!$this->checkFieldLength($field)) {
$field->addError(
$this->translator->trans(
'The %1$s field is too long (%2$d chars max).',
Expand All @@ -152,7 +152,7 @@ public function validate()
} elseif (!$field->isRequired()) {
if (!$field->getValue()) {
continue;
} elseif (!$this->validateFieldLength($field)) {
} elseif (!$this->checkFieldLength($field)) {
$field->addError(
$this->translator->trans(
'The %1$s field is too long (%2$d chars max).',
Expand Down Expand Up @@ -232,7 +232,7 @@ public function setValue($field_name, $value)
*
* @return bool
*/
protected function validateFieldLength($field)
protected function checkFieldLength($field)
{
$error = $field->getMaxLength() != null && strlen($field->getValue()) > (int) $field->getMaxLength();

Expand Down

0 comments on commit 6836542

Please sign in to comment.