From a402ccfa662057ef04601d0009b6d145ba7cd3fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 23 Jun 2021 13:55:13 +0200 Subject: [PATCH] Replace `Response` by `ResponseInterface` in `UnfurlUrlBackgroundJob` --- .../system/background/job/UnfurlUrlBackgroundJob.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php index 121e75269b..b397da5a97 100644 --- a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php @@ -3,8 +3,8 @@ namespace wcf\system\background\job; use BadMethodCallException; -use GuzzleHttp\Psr7\Response; use LogicException; +use Psr\Http\Message\ResponseInterface; use wcf\data\unfurl\url\UnfurlUrl; use wcf\data\unfurl\url\UnfurlUrlAction; use wcf\system\message\unfurl\exception\DownloadFailed; @@ -171,7 +171,7 @@ final class UnfurlUrlBackgroundJob extends AbstractBackgroundJob return $imageID; } - private function downloadImage(Response $imageResponse): string + private function downloadImage(ResponseInterface $imageResponse): string { $image = ""; try { -- 2.20.1