修复一个严重BUG。

该BUG会导致解析参数累加
This commit is contained in:
IT小强xqitw.cn 2018-06-06 21:14:40 +08:00
parent a098afedd3
commit 743678af16

View File

@ -110,9 +110,9 @@ class ApiDoc
return [];
}
$comments = [];
$parse = new ParseComment();
foreach ($method as $action) {
try {
$parse = new ParseComment();
$actionComments = $parse->parseCommentToArray($action->getDocComment());
if (count($actionComments) >= 1 && !in_array($action->name, $this->filterMethod)) {
$comments[$action->name] = $actionComments;