summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-18 11:03:26 +0300
committerAndrew Dolgov <[email protected]>2021-11-18 11:03:26 +0300
commitb2ffc8c2e3cbc0958d38c7d15e9357c5e1ba43c1 (patch)
tree7e039f84e7f1247086265ae773f1f8c8a0e47cf0 /classes/feeds.php
parent9ac67c7973025dd87861f52acacaac294fae1018 (diff)
_format_headlines_list: fix phpstan warning properly
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-xclasses/feeds.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 0c75215c8..970db0107 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -69,6 +69,8 @@ class Feeds extends Handler_Protected {
$qfh_ret = [];
if (!$cat_view && is_numeric($feed) && $feed < PLUGIN_FEED_BASE_INDEX && $feed > LABEL_BASE_INDEX) {
+
+ /** @var IVirtualFeed|false $handler */
$handler = PluginHost::getInstance()->get_feed_handler(
PluginHost::feed_to_pfeed_id($feed));
@@ -86,8 +88,6 @@ class Feeds extends Handler_Protected {
"include_children" => $include_children,
"order_by" => $order_by);
- // Implemented by a plugin, so ignore the undefined 'get_headlines' method.
- // @phpstan-ignore-next-line
$qfh_ret = $handler->get_headlines(PluginHost::feed_to_pfeed_id($feed),
$options);
}