From ef1dd318d437bb33adddf226c546e85f4744ce8c Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Mon, 25 Sep 2023 01:35:47 +0300 Subject: Update stuff --- src/Validators/LenValidator.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/Validators/LenValidator.php') diff --git a/src/Validators/LenValidator.php b/src/Validators/LenValidator.php index c5a152b..ca4e486 100644 --- a/src/Validators/LenValidator.php +++ b/src/Validators/LenValidator.php @@ -1,12 +1,14 @@ + * @author Asko Nomm */ class LenValidator implements Validator { @@ -18,7 +20,7 @@ class LenValidator implements Validator * @param mixed $modifier * @return boolean */ - public static function validate(string $field, mixed $value, mixed $modifier = null): bool + public function validate(string $field, mixed $value, mixed $modifier = null): bool { // If no modifier present then this validator will always validate. if (!$modifier) { @@ -39,8 +41,8 @@ class LenValidator implements Validator * @param mixed $modifier * @return string */ - public static function composeError(string $field, mixed $modifier = null): string + public function composeError(string $field, mixed $modifier = null): string { - return "{$field} is shorter than the required ${modifier} characters."; + return "{$field} is shorter than the required {$modifier} characters."; } } -- cgit v1.2.3