From: Timo Tijhof Date: Thu, 2 Feb 2017 20:03:27 +0000 (+0000) Subject: rcfeed: FormattedRCFeed constructor should match parent class X-Git-Tag: 1.31.0-rc.0~4158 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/Category:Bar1?a=commitdiff_plain;h=7c0b5493012b960d9785c6d6fc080675293b61a8;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; }