Skip to content

v1.3.0

Choose a tag to compare

@SoloPHP SoloPHP released this 17 Feb 13:08
· 7 commits to main since this release

ValidatorInterface

  • Removed $messages parameter from validate() 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.