Skip to content

Commit

Permalink
added returning route response
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirmuxsin committed Apr 6, 2024
1 parent 6ddf1b9 commit b937f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FSM/FSM.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static function route(string|null $status, callable|string|array $callabl

// $method = new \ReflectionFunction($function);

return call_user_func_array($callable, $params);
return response(call_user_func_array($callable, $params))->send();
}


Expand Down

0 comments on commit b937f9f

Please # to comment.