diff --git a/README.md b/README.md index 86b7bb37..c32f0070 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ $klein->respond(function ($request, $response, $service) { $klein->respond('/report.[xml|csv|json:format]?', function ($request, $response, $service) { // Get the format or fallback to JSON as the default $send = $request->param('format', 'json'); - $response->$send($report); + $response->send($report); }); $klein->respond('/report/latest', function ($request, $response, $service) {