docs: Clarify phpdoc

This commit is contained in:
kj
2026-09-03 16:12:54 -03:00
parent 4845d14ef5
commit 31728af351

View File

@@ -103,9 +103,9 @@ class Validator
* Builds the human-readable message for a single failed validation.
*
* Pure helper: it only reads its arguments and never reads nor writes
* $lastFailed or any other state, and it is independent of Request. A
* controller may adopt it (opt-in) to render a message with :attribute in
* place of Request's default text.
* $lastFailed or any other state. Request::validate() uses it to produce
* the single error message it sends, forwarding its messages() and
* attributes() maps; it can also be called directly by controllers.
*
* Resolution order for the message text:
* 1. $messages[$lastFailed] override by full "field.rule:args"