Skip to content
Corex

Email

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

Fails when a non-empty value is not a syntactically valid email address. An empty value passes here — emptiness is the required rule’s concern.

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

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