_format_headlines_list: fix phpstan warning properly

This commit is contained in:
Andrew Dolgov 2021-11-18 11:03:26 +03:00
parent 9ac67c7973
commit b2ffc8c2e3
1 changed files with 2 additions and 2 deletions

View File

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