diff --git a/src/AnnotationController.php b/src/AnnotationController.php index d3e4f73..2b0b6ea 100644 --- a/src/AnnotationController.php +++ b/src/AnnotationController.php @@ -85,7 +85,7 @@ public function __hook(?array $actionArg = [],?array $onRequestArg = null) return ; } /* - * $onRequestArg 是全部定义的参数,而$actionArg 是方法定义与控制器全局定义的参数合集 + * $onRequestArg 是全部定义的参数,而$actionArg 是方法定义参数 */ parent::__hook($actionArg,$onRequestArg); @@ -173,7 +173,6 @@ private function runParamsValidate(string $method, Request $request):array if(!in_array($method,$param->ignoreAction)){ if(!isset($actionParams[$param->name])){ $actionParams[$param->name] = $param; - $cacheActionParamKeys[$param->name] = $param->name; } } }