make phpstan happy

This commit is contained in:
Andrew Dolgov
2022-09-29 20:02:59 +03:00
parent 3545d3ba83
commit 42bc1620b8
2 changed files with 14 additions and 9 deletions

View File

@@ -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;