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; }