From 741d911b189719b349a70be1379aba41f9f61151 Mon Sep 17 00:00:00 2001 From: Daniel Lienert Date: Wed, 23 Sep 2020 08:01:28 +0200 Subject: [PATCH] BUGFIX: Add missing return statement --- Classes/Api/PexelsClient.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/Api/PexelsClient.php b/Classes/Api/PexelsClient.php index 32c082a..7b81bf9 100644 --- a/Classes/Api/PexelsClient.php +++ b/Classes/Api/PexelsClient.php @@ -119,6 +119,8 @@ public function getFileStream(string $url) if (!is_resource($resource)) { throw new TransferException(sprintf('Unable to load an image from %s %s. Error: %s', $url, $tcpPrefixedProxy !== '' ? 'using proxy ' . $tcpPrefixedProxy : ' without using a proxy.', error_get_last()), 1600770625); } + + return $resource; } /**