Skip to content
Corex

MinLength

Corex\Forms\Validation\Rules\MinLength · class · Forms layer

Lower bound on the number of characters, whatever the characters are: 12 is two characters, not a number that clears a minimum of three. An empty value passes (see required). Fails with the same key as {@see Min}, so the two share one message.

validate(mixed $value, array $params, array $allValues): ?string

Section titled “validate(mixed $value, array $params, array $allValues): ?string”