From: Tim Düsterhus Date: Wed, 23 Jun 2021 11:55:13 +0000 (+0200) Subject: Replace `Response` by `ResponseInterface` in `UnfurlUrlBackgroundJob` X-Git-Tag: 5.5.0_Alpha_1~605 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a402ccfa662057ef04601d0009b6d145ba7cd3fd;p=GitHub%2FWoltLab%2FWCF.git Replace `Response` by `ResponseInterface` in `UnfurlUrlBackgroundJob` --- 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 {