Skip to content
2 changes: 1 addition & 1 deletion src/lib/generators/ControllersGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function generate():CodeFiles
$controllerPath = $path;
/**
* @var RestAction|FractalAction $action
**/
*/
$action = $actions[0];
if ($action->prefix && !empty($action->prefixSettings)) {
$controllerNamespace = trim($action->prefixSettings['namespace'], '\\');
Expand Down