From f64bee5818f1795043bf3aff74fee2ca82eda185 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Mon, 25 Sep 2023 01:38:07 +0300 Subject: Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 32b3fb4..0eec3d4 100644 --- a/README.md +++ b/README.md @@ -142,4 +142,4 @@ class EmailValidator implements Validator You can see that there are two methods, one for validating the `$value` and the other for composing an error message if the validation fails. Both functions take in a `$modifier` argument, which will only have value if the validator is using modifiers. For example, the `len` validator is using modifiers to determine how long of a string should be required, by passing the rule in as `len:{number-of-characters}`. -Once you've created the class for your validator, you can register it by calling `$hird->registerValidator('rule-name', (new YourValidatorClass))`. +Once you've created the class for your validator, you can register it by calling `$hird->registerValidator('rule-name', YourValidator::class)`. -- cgit v1.2.3