From 743678af16fdcbbc0503204e8d2d947dd53299a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IT=E5=B0=8F=E5=BC=BAxqitw=2Ecn?= <360237521@qq.com> Date: Wed, 6 Jun 2018 21:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E4=B8=A5?= =?UTF-8?q?=E9=87=8DBUG=E3=80=82=20=E8=AF=A5BUG=E4=BC=9A=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=8F=82=E6=95=B0=E7=B4=AF=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ApiDoc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiDoc.php b/src/ApiDoc.php index f2df20b..775b50c 100644 --- a/src/ApiDoc.php +++ b/src/ApiDoc.php @@ -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;