Repository navigation
v1.3.0
ValidatorInterface
- Removed
$messagesparameter fromvalidate()method. validate()now returns a structured errors array instead of string messages:
/** @return array<string, list<array{rule: string, params?: string[]}>> */This separates validation logic from message formatting — the validator returns only the rule name and parameters, leaving error message rendering to the caller.