summaryrefslogtreecommitdiffstats
path: root/lib/Fetcher/Client/LegacyGuzzleClient.php
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2019-08-16 07:57:34 +0200
committerGitHub <noreply@github.com>2019-08-16 07:57:34 +0200
commitae99d52aad2f8c008ce064d73141fcd3796a3dee (patch)
tree868b9ca7015207539280c7b0c53466f0968b1436 /lib/Fetcher/Client/LegacyGuzzleClient.php
parent6c01164b9b23ee70544487484c23a1bd196ca3c4 (diff)
Update to feedio 4+ (#494)
- bumped dependencies to last supported version travis: - removed php 7.0 - move main target to nc 16 - drop support for nc 14 & 15 Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'lib/Fetcher/Client/LegacyGuzzleClient.php')
-rw-r--r--lib/Fetcher/Client/LegacyGuzzleClient.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Fetcher/Client/LegacyGuzzleClient.php b/lib/Fetcher/Client/LegacyGuzzleClient.php
index 8e41221c9..4d56df0b3 100644
--- a/lib/Fetcher/Client/LegacyGuzzleClient.php
+++ b/lib/Fetcher/Client/LegacyGuzzleClient.php
@@ -12,6 +12,7 @@
namespace OCA\News\Fetcher\Client;
use FeedIo\Adapter\ClientInterface as FeedIoClientInterface;
+use FeedIo\Adapter\ResponseInterface;
use FeedIo\Adapter\NotFoundException;
use FeedIo\Adapter\ServerErrorException;
use Guzzle\Service\ClientInterface;
@@ -42,7 +43,7 @@ class LegacyGuzzleClient implements FeedIoClientInterface
* @throws \FeedIo\Adapter\ServerErrorException
* @return \FeedIo\Adapter\ResponseInterface
*/
- public function getResponse($url, \DateTime $modifiedSince)
+ public function getResponse(string $url, \DateTime $modifiedSince) : ResponseInterface
{
try {
$options = [