Skip to content

Commit bf18d70

Browse files
committed
Correct return type
1 parent a651ac7 commit bf18d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPFUI/ORM/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ private function validate_maxlength(mixed $value) : string
601601
{
602602
if ($this->currentFieldDefinitions->length <= 0)
603603
{
604-
return true; // zero length fields can't have a max length test
604+
return ''; // zero length fields can't have a max length test
605605
}
606606

607607
$length = $this->currentParameters[0] ?? $this->currentFieldDefinitions->length;

0 commit comments

Comments
 (0)