Skip to content
This repository was archived by the owner on Apr 26, 2020. It is now read-only.

Commit 70f7544

Browse files
committed
修正由于注释不规范而引起的报错
1 parent 9e95329 commit 70f7544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function render($modules = []) {
8585
$docComment = $ref->getDocComment();
8686
if ($docComment !== false) {
8787
$docCommentArr = explode("\n", $docComment);
88-
$comment = trim($docCommentArr[1]);
88+
$comment = isset($docCommentArr[1])?trim($docCommentArr[1]):'';
8989
$title = trim(substr($comment, strpos($comment, '*') + 1));
9090
foreach ($docCommentArr as $comment) {
9191
$pos = stripos($comment, '@desc');

0 commit comments

Comments
 (0)