Skip to content

Commit b8bef51

Browse files
try reflect
1 parent b11d762 commit b8bef51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/LaravelRequestDocs.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ public function appendRequestRules(array $controllersInfo)
121121
try {
122122
$reflectionMethod = new ReflectionMethod($controller, $method);
123123
} catch (Throwable $e) {
124+
if (config('request-docs.debug')) {
125+
throw $e;
126+
}
124127
continue;
125128
}
126129
$params = $reflectionMethod->getParameters();

0 commit comments

Comments
 (0)