X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatFeedWrapper.php;h=40cc738fffaa639d3c9dd381fdcc78f5327dc91c;hb=0705929343a7fbd3417a475cd0c9a0dfe53c3dc4;hp=3ab5ab9e61a6ac2d0ff2d5d90b5da7e9a3880053;hpb=7320a9577e882fbeacb1772977fbfecf8aa5424d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatFeedWrapper.php b/includes/api/ApiFormatFeedWrapper.php index 3ab5ab9e61..40cc738fff 100644 --- a/includes/api/ApiFormatFeedWrapper.php +++ b/includes/api/ApiFormatFeedWrapper.php @@ -1,9 +1,5 @@ @gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -83,7 +79,9 @@ class ApiFormatFeedWrapper extends ApiFormatBase { $data = $this->getResult()->getResultData(); if ( isset( $data['_feed'] ) && isset( $data['_feeditems'] ) ) { - $data['_feed']->httpHeaders(); + /** @var ChannelFeed $feed */ + $feed = $data['_feed']; + $feed->httpHeaders(); } else { // Error has occurred, print something useful ApiBase::dieDebug( __METHOD__, 'Invalid feed class/item' ); @@ -98,6 +96,7 @@ class ApiFormatFeedWrapper extends ApiFormatBase { public function execute() { $data = $this->getResult()->getResultData(); if ( isset( $data['_feed'] ) && isset( $data['_feeditems'] ) ) { + /** @var ChannelFeed $feed */ $feed = $data['_feed']; $items = $data['_feeditems'];