mirror of
https://github.com/Intervention/image.git
synced 2025-08-24 14:32:52 +02:00
Merge pull request #1128 from stijink/master
Since symfony/http-foundation 5.1: The "Symfony\Component\HttpFoundation\Response::create()" method is deprecated, use "new Symfony\Component\HttpFoundation\Response()" instead
This commit is contained in:
@@ -62,7 +62,7 @@ class Response
|
||||
|
||||
} 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);
|
||||
|
||||
|
Reference in New Issue
Block a user