summaryrefslogtreecommitdiffstats
path: root/lib/Fetcher/Client/FeedIoClient.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/FeedIoClient.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/FeedIoClient.php')
-rw-r--r--lib/Fetcher/Client/FeedIoClient.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Fetcher/Client/FeedIoClient.php b/lib/Fetcher/Client/FeedIoClient.php
index d9ce8d897..268828e2b 100644
--- a/lib/Fetcher/Client/FeedIoClient.php
+++ b/lib/Fetcher/Client/FeedIoClient.php
@@ -11,6 +11,7 @@
namespace OCA\News\Fetcher\Client;
use FeedIo\Adapter\ClientInterface;
+use FeedIo\Adapter\ResponseInterface;
use FeedIo\Adapter\Guzzle\Response;
use FeedIo\Adapter\NotFoundException;
use FeedIo\Adapter\ServerErrorException;
@@ -41,7 +42,7 @@ class FeedIoClient implements ClientInterface
* @throws \FeedIo\Adapter\ServerErrorException
* @return \FeedIo\Adapter\ResponseInterface
*/
- public function getResponse($url, \DateTime $modifiedSince)
+ public function getResponse(string $url, \DateTime $modifiedSince) : ResponseInterface
{
try {
$options = [