Skip to content

Commit f26c564

Browse files
committed
Fix type
1 parent fe49b3e commit f26c564

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/LaravelRequestDocs.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ public function getDocs(
3636
Request::METHOD_PATCH => $showPatch,
3737
Request::METHOD_DELETE => $showDelete,
3838
Request::METHOD_HEAD => $showHead,
39-
], function (string $method) {
40-
return $method;
41-
});
39+
], fn(bool $shouldShow) => $shouldShow);
4240

4341
/** @var string[] $methods */
4442
$methods = array_keys($filteredMethods);

0 commit comments

Comments
 (0)