From 7c0b5493012b960d9785c6d6fc080675293b61a8 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Thu, 2 Feb 2017 20:03:27 +0000 Subject: [PATCH] rcfeed: FormattedRCFeed constructor should match parent class I intentionally made the constructor parameter optional in the new RCFeed class from 39a6e3dc4d84, however it was not optional in the subclass, which the older classes are now based on top of. Bug: T156996 Change-Id: I05b9e15920bc39f27c402b023d1463cfbdd2efb8 --- includes/rcfeed/FormattedRCFeed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/rcfeed/FormattedRCFeed.php b/includes/rcfeed/FormattedRCFeed.php index d841681878..48a9f946a5 100644 --- a/includes/rcfeed/FormattedRCFeed.php +++ b/includes/rcfeed/FormattedRCFeed.php @@ -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; } -- 2.20.1