Skip to content

Commit e4f0ca0

Browse files
Merge pull request #76 from farshadfakhar/master
fix: method without params documents not shown
2 parents bd6c567 + d64ccea commit e4f0ca0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LaravelRequestDocs.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,14 @@ public function appendRequestRules(array $controllersInfo)
147147
}
148148
}
149149

150-
$controllersInfo[$index]['docBlock'] = $this->lrdDocComment($reflectionMethod->getDocComment());
151-
152150
$controllersInfo[$index]['rules'] = array_merge(
153151
$controllersInfo[$index]['rules'] ?? [],
154152
$customRules,
155153
);
156154
}
155+
156+
$controllersInfo[$index]['docBlock'] = $this->lrdDocComment($reflectionMethod->getDocComment());
157+
157158
}
158159
return $controllersInfo;
159160
}

0 commit comments

Comments
 (0)