-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Slim3 Response::withBody($string) #1410
Copy link
Copy link
Closed
Description
Sending response with string body raise an error:
Catchable fatal error: Argument 1 passed to Slim\Http\Response::withBody() must implement interface Psr\Http\Message\StreamInterface, string given
From migration guide:
$app->get('/', function ($req, $res, $args) {
return $res->withStatus(400)->withBody("Bad Request");
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels