From faa64b28def721936f0e686db8e9aa66dab3de81 Mon Sep 17 00:00:00 2001 From: Stephan Tijink Date: Wed, 15 Dec 2021 20:33:38 +0100 Subject: [PATCH] Since symfony/http-foundation 5.1: The "Symfony\Component\HttpFoundation\Response::create()" method is deprecated, use "new Symfony\Component\HttpFoundation\Response()" instead --- src/Intervention/Image/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Intervention/Image/Response.php b/src/Intervention/Image/Response.php index 8e794081..59a51e99 100644 --- a/src/Intervention/Image/Response.php +++ b/src/Intervention/Image/Response.php @@ -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);