Merge pull request #739 from jk2K/patch-1

fix Stream argument 1 type is wrong
This commit is contained in:
Andrew Millington 2018-02-17 17:27:16 +00:00 committed by GitHub
commit 28278da6a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ $app->get('/authorize', function (ServerRequestInterface $request, ResponseInter
} catch (\Exception $exception) {
// Unknown exception
$body = new Stream('php://temp', 'r+');
$body = new Stream(fopen('php://temp', 'r+'));
$body->write($exception->getMessage());
return $response->withStatus(500)->withBody($body);
@ -152,7 +152,7 @@ $app->post('/access_token', function (ServerRequestInterface $request, ResponseI
} catch (\Exception $exception) {
// Unknown exception
$body = new Stream('php://temp', 'r+');
$body = new Stream(fopen('php://temp', 'r+'));
$body->write($exception->getMessage());
return $response->withStatus(500)->withBody($body);
}