From fcaa1d5d52c7d4f09b53bd566432f19c4a226f4c Mon Sep 17 00:00:00 2001 From: Willem Wollebrants Date: Mon, 25 Jun 2018 22:18:19 +0200 Subject: [PATCH] make phpdoc more specific for parameter in Validator::addInstanceRule and Validator::addRule, both need a callable --- src/Valitron/Validator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Valitron/Validator.php b/src/Valitron/Validator.php index 4404d48..313d7e8 100644 --- a/src/Valitron/Validator.php +++ b/src/Valitron/Validator.php @@ -1079,7 +1079,7 @@ class Validator * instance only. * * @param string $name - * @param mixed $callback + * @param callable $callback * @param string $message * @throws \InvalidArgumentException */ @@ -1095,7 +1095,7 @@ class Validator * Register new validation rule callback * * @param string $name - * @param mixed $callback + * @param callable $callback * @param string $message * @throws \InvalidArgumentException */