修复一个严重BUG。
该BUG会导致解析参数累加
This commit is contained in:
parent
a098afedd3
commit
743678af16
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user