From dba85d8e8fc610e333f1412f15a439ccd0ef175d Mon Sep 17 00:00:00 2001 From: Yang Li <312166131@qq.com> Date: Thu, 3 Aug 2017 15:11:33 +0800 Subject: [PATCH] Update ApiDesc.php --- src/ApiDesc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiDesc.php b/src/ApiDesc.php index d516c19..40a5f6b 100644 --- a/src/ApiDesc.php +++ b/src/ApiDesc.php @@ -76,7 +76,7 @@ public function render() { $pos = stripos($comment, '@param'); if ($pos !== FALSE) { $paramArr = explode(' ', trim(substr($comment, $pos + 7)), 3); - $rules[$paramArr[0]] = $paramArr; + $rules[] = $paramArr; continue; }