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