Skip to content
Corex

Numeric

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

Fails when a non-empty value is not numeric. An empty value passes (see required for emptiness).

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

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