Skip to content

Commit

Permalink
Since symfony/http-foundation 5.1: The "Symfony\Component\HttpFoundat…
Browse files Browse the repository at this point in the history
…ion\Response::create()" method is deprecated, use "new Symfony\Component\HttpFoundation\Response()" instead
  • Loading branch information
stijink committed Dec 15, 2021
1 parent a1abc98 commit faa64b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Intervention/Image/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function make()

} elseif (class_exists('\Symfony\Component\HttpFoundation\Response')) {

$response = SymfonyResponse::create($data);
$response = new SymfonyResponse($data);
$response->headers->set('Content-Type', $mime);
$response->headers->set('Content-Length', $length);

Expand Down

0 comments on commit faa64b2

Please sign in to comment.