Skip to content

Commit e09d614

Browse files
should fix #8 error exception
1 parent adfc957 commit e09d614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelRequestDocs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function appendRequestRules(array $controllersInfo)
133133
if ($requestClass && method_exists($requestClass, 'rules')) {
134134
try {
135135
$controllersInfo[$index]['rules'] = $this->flattenRules($requestClass->rules());
136-
} catch (Exception $e) {
136+
} catch (Throwable $e) {
137137
// disabled. This only works when the rules are defined as 'required|integer' and that too in single line
138138
// doesn't work well when the same rule is defined as array ['required', 'integer'] or in multiple lines such as
139139
// If your rules are not populated using this library, then fix your rule to only throw validation errors and not throw exceptions

0 commit comments

Comments
 (0)