mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-28 18:23:16 +05:30
Fix immutability issues
This commit is contained in:
1 parent
e9f8e7ac19
commit
8f724bb720
1 file changed
+2
-4
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user