From 96011b1d34e0c0522813dab3d8e81f75bb89649f Mon Sep 17 00:00:00 2001 From: liyang Date: Wed, 25 Oct 2017 01:52:57 +0800 Subject: [PATCH] closed #1 fix bug --- src/ApiDesc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiDesc.php b/src/ApiDesc.php index a830e9c..2e9903f 100644 --- a/src/ApiDesc.php +++ b/src/ApiDesc.php @@ -77,7 +77,7 @@ public function render() { //@param注释 $pos = stripos($comment, '@param'); if ($pos !== FALSE) { - $paramArr = explode(' ', trim(substr($comment, $pos + 7)), 3); + $paramArr = explode(' ', trim(substr(trim($comment), $pos + 7)), 3); $rules[] = $paramArr; continue; }