Skip to content

Commit

Permalink
修复无参数定义
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Feb 7, 2023
1 parent c3b027c commit d0d32b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AnnotationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function __hook(?array $actionArg = [],?array $onRequestArg = null)
return ;
}
/*
* $onRequestArg 是全部定义的参数,而$actionArg 是方法定义与控制器全局定义的参数合集
* $onRequestArg 是全部定义的参数,而$actionArg 是方法定义参数
*/

parent::__hook($actionArg,$onRequestArg);
Expand Down Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit d0d32b9

Please sign in to comment.