Merge "ApiQueryWatchlist: Document type of $commentStore property"
[lhc/web/wiklou.git] / includes / rcfeed / FormattedRCFeed.php
index d841681..afe900d 100644 (file)
@@ -32,7 +32,7 @@ abstract class FormattedRCFeed extends RCFeed {
         *  - 'formatter'
         * @see $wgRCFeeds
         */
-       public function __construct( array $params ) {
+       public function __construct( array $params = [] ) {
                $this->params = $params;
        }
 
@@ -52,7 +52,7 @@ abstract class FormattedRCFeed extends RCFeed {
         */
        public function notify( RecentChange $rc, $actionComment = null ) {
                $params = $this->params;
-               /** @var $formatter RCFeedFormatter */
+               /** @var RCFeedFormatter $formatter */
                $formatter = is_object( $params['formatter'] ) ? $params['formatter'] : new $params['formatter'];
 
                $line = $formatter->getLine( $params, $rc, $actionComment );