Skip to content

Commit

Permalink
Merge pull request #225 from KenorFR/KenorFR-deprecated-symfony
Browse files Browse the repository at this point in the history
corrects deprecated symfony 5.1
  • Loading branch information
barryvdh authored Aug 20, 2020
2 parents d6a1bed + d0970b8 commit 0d1f448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Common/Message/AbstractResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function getRedirectResponse()
$this->validateRedirect();

if ('GET' === $this->getRedirectMethod()) {
return HttpRedirectResponse::create($this->getRedirectUrl());
return new HttpRedirectResponse($this->getRedirectUrl());
}

$hiddenFields = '';
Expand Down Expand Up @@ -241,7 +241,7 @@ public function getRedirectResponse()
$hiddenFields
);

return HttpResponse::create($output);
return new HttpResponse($output);
}

/**
Expand Down

0 comments on commit 0d1f448

Please sign in to comment.