Replace `Response` by `ResponseInterface` in `UnfurlUrlBackgroundJob`
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 23 Jun 2021 11:55:13 +0000 (13:55 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 23 Jun 2021 11:55:13 +0000 (13:55 +0200)
wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php

index 121e75269b3050ca53606b21c73bc4e234bca42a..b397da5a97449d837f2fbd3b573879019da6cb68 100644 (file)
@@ -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 {