Skip to content

Commit ca6c8ab

Browse files
committed
Simplify closure type handling
1 parent 9b10bb1 commit ca6c8ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/framework/src/Support/Internal/RouteList.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public function headers(): array
4141

4242
protected function generate(): array
4343
{
44-
return collect(Hyde::routes())->map(function (Route $route): array {
45-
return (new RouteListItem($route))->toArray();
44+
return collect(Hyde::routes())->map(function (Route $route): RouteListItem {
45+
return new RouteListItem($route);
4646
})->values()->toArray();
4747
}
4848
}

0 commit comments

Comments
 (0)