We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c09b18d commit 7edd781Copy full SHA for 7edd781
src/Keywords/MaxLengthKeyword.php
@@ -43,10 +43,6 @@ public function __construct(int $length)
43
*/
44
public function validate(ValidationContext $context, Schema $schema): ?ValidationError
45
{
46
- if ($this->length === 0) {
47
- return null;
48
- }
49
-
50
$length = $context->getStringLength();
51
52
if ($length <= $this->length) {
0 commit comments