Skip to content

Commit

Permalink
Fix routes controller
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed May 28, 2024
1 parent 1a391bd commit 3486414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Inspector/Controller/InspectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function routes(RouteCollectionInterface $routeCollection): ResponseInter
'methods' => $data['methods'],
'defaults' => $data['defaults'],
'override' => $data['override'],
'middlewares' => $data['middlewareDefinitions'],
'middlewares' => $data['middlewareDefinitions'] ?? [],
];
}
$response = VarDumper::create($routes)->asPrimitives(5);
Expand Down

0 comments on commit 3486414

Please sign in to comment.