From 2baa7a2b9136d4d4dc1e56dfc043cc71da3ee1df Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Fri, 20 Nov 2020 20:52:54 +0100 Subject: Make PHPstan stricter Signed-off-by: Sean Molenaar --- lib/Service/FeedServiceV2.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/Service/FeedServiceV2.php') diff --git a/lib/Service/FeedServiceV2.php b/lib/Service/FeedServiceV2.php index d49c540b1..9d577db97 100644 --- a/lib/Service/FeedServiceV2.php +++ b/lib/Service/FeedServiceV2.php @@ -18,7 +18,6 @@ use FeedIo\Reader\ReadErrorException; use HTMLPurifier; use OCA\News\Db\FeedMapperV2; -use OCA\News\Db\Folder; use OCA\News\Fetcher\FeedFetcher; use OCA\News\Service\Exceptions\ServiceConflictException; use OCA\News\Service\Exceptions\ServiceNotFoundException; @@ -206,7 +205,7 @@ class FeedServiceV2 extends Service * @var Feed $feed * @var Item[] $items */ - list($feed, $items) = $this->feedFetcher->fetch($feedUrl, true, '0', $full_text, $user, $password); + list($feed, $items) = $this->feedFetcher->fetch($feedUrl, $full_text, $user, $password); } catch (ReadErrorException $ex) { $this->logger->debug($ex->getMessage()); throw new ServiceNotFoundException($ex->getMessage()); @@ -307,7 +306,7 @@ class FeedServiceV2 extends Service $feed->setLastUpdateError(null); $unreadCount = 0; - array_map(function (Item $item) use (&$unreadCount) { + array_map(function (Item $item) use (&$unreadCount): void { if ($item->isUnread()) { $unreadCount++; } -- cgit v1.2.3