summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-09-29 20:02:59 +0300
committerAndrew Dolgov <[email protected]>2022-09-29 20:02:59 +0300
commit42bc1620b8deda73b96b2e0029c6de79daa5ccca (patch)
tree1481290a1e82e3caade53741165cffa41432cef2 /classes/feeds.php
parent3545d3ba83a486b077b2d1d141ea871bb47a29fb (diff)
make phpstan happy
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-xclasses/feeds.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 3801f1511..37ce77aa9 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -667,7 +667,7 @@ class Feeds extends Handler_Protected {
}
Debug::set_enabled(true);
- Debug::set_loglevel(Debug::map_loglevel($xdebug));
+ Debug::set_loglevel((int)Debug::map_loglevel($xdebug));
$feed_id = (int)$_REQUEST["feed_id"];
$do_update = ($_REQUEST["action"] ?? "") == "do_update";
@@ -969,6 +969,7 @@ class Feeds extends Handler_Protected {
$feed_id = PluginHost::feed_to_pfeed_id($feed);
$handler = PluginHost::getInstance()->get_feed_handler($feed_id);
if (implements_interface($handler, 'IVirtualFeed')) {
+ /** @var IVirtualFeed $handler */
return $handler->get_unread($feed_id);
} else {
return 0;