Skip to content

Commit 7edd781

Browse files
committed
Fixed maxLength 0 bug
1 parent c09b18d commit 7edd781

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Keywords/MaxLengthKeyword.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ public function __construct(int $length)
4343
*/
4444
public function validate(ValidationContext $context, Schema $schema): ?ValidationError
4545
{
46-
if ($this->length === 0) {
47-
return null;
48-
}
49-
5046
$length = $context->getStringLength();
5147

5248
if ($length <= $this->length) {

0 commit comments

Comments
 (0)