From 218fd19135dc82f92a01c1105d4c232eb0a1af24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 16 Apr 2023 12:23:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Validator/BindForm.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Validator/BindForm.php b/src/Validator/BindForm.php index ff5f2e7..7c866b9 100644 --- a/src/Validator/BindForm.php +++ b/src/Validator/BindForm.php @@ -4,6 +4,7 @@ namespace Kiri\Router\Validator; use Kiri\Di\Interface\InjectParameterInterface; use Kiri\Router\Interface\ValidatorInterface; +use ReflectionException; #[\Attribute(\Attribute::TARGET_PARAMETER)] class BindForm implements InjectParameterInterface @@ -19,10 +20,12 @@ class BindForm implements InjectParameterInterface /** + * @param object $class + * @param string $method * @return mixed - * @throws \ReflectionException + * @throws ReflectionException */ - public function dispatch(): mixed + public function dispatch(object $class, string $method): mixed { $validator = new Validator(); $reflect = \Kiri::getDi()->getReflectionClass($this->formValidate);