From 31728af3511d36742050d8ab72d13c8daa481089 Mon Sep 17 00:00:00 2001 From: kj Date: Thu, 3 Sep 2026 16:12:54 -0300 Subject: [PATCH] docs: Clarify phpdoc --- src/Libs/Validator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Libs/Validator.php b/src/Libs/Validator.php index 43a3072..79fe9e0 100644 --- a/src/Libs/Validator.php +++ b/src/Libs/Validator.php @@ -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"