Use a native DNF type for 'PluginHost->get_feed_handler()'.
This commit is contained in:
@@ -784,10 +784,8 @@ class PluginHost {
|
||||
|
||||
/**
|
||||
* convert feed_id (e.g. -129) to pfeed_id first
|
||||
*
|
||||
* @return (Plugin&IVirtualFeed)|null
|
||||
*/
|
||||
function get_feed_handler(int $pfeed_id): ?Plugin {
|
||||
function get_feed_handler(int $pfeed_id): (Plugin&IVirtualFeed)|null {
|
||||
foreach ($this->feeds as $cat) {
|
||||
foreach ($cat as $feed) {
|
||||
if ($feed['id'] == $pfeed_id) {
|
||||
|
||||
Reference in New Issue
Block a user