mini\Validator\Validator::validateCustom() Method

private

Signature

private function validateCustom(Closure $callback, mixed $value, mixed $context): ?string

Parameters

Name Type Default Description
$callback Closure required Documentation missing
$value mixed required Documentation missing
$context mixed required Documentation missing

Returns

?string

Documentation

Validate using custom closure

Calls the closure with both value and context. If the closure only accepts one parameter, the second parameter is simply ignored by PHP.

Source

src/Validator/Validator.php:885-889