Skip to content

Commit

Permalink
Avoid self-assign when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Manuel Cardona committed Feb 10, 2020
1 parent fe973b9 commit 73c16d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psr15MiddlewareAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected function getResponse(ResponseInterface $psr7Response): Response
$response->setCharset($foundationResponse->getCharset() ? $foundationResponse->getCharset() : '');

foreach($foundationResponse->headers->getCookies() as $cookie) {
$response = $response->withCookie($cookie);
$response->withCookie($cookie);
}

return $response;
Expand Down

0 comments on commit 73c16d4

Please sign in to comment.