mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Fix immutability issues
This commit is contained in:
parent
e9f8e7ac19
commit
8f724bb720
@ -226,14 +226,12 @@ class OAuthServerException extends \Exception
|
||||
}
|
||||
|
||||
foreach ($headers as $header => $content) {
|
||||
$response->withHeader($header, $content);
|
||||
$response = $response->withHeader($header, $content);
|
||||
}
|
||||
|
||||
$response
|
||||
return $response
|
||||
->withStatus($this->getHttpStatusCode())
|
||||
->getBody()->write(json_encode($payload));
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user