diff options
author | Andrew Dolgov <[email protected]> | 2021-11-18 11:03:26 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-18 11:03:26 +0300 |
commit | b2ffc8c2e3cbc0958d38c7d15e9357c5e1ba43c1 (patch) | |
tree | 7e039f84e7f1247086265ae773f1f8c8a0e47cf0 /classes | |
parent | 9ac67c7973025dd87861f52acacaac294fae1018 (diff) |
_format_headlines_list: fix phpstan warning properly
Diffstat (limited to 'classes')
-rwxr-xr-x | classes/feeds.php | 4 |
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); } |