rcfeed: FormattedRCFeed constructor should match parent class
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 2 Feb 2017 20:03:27 +0000 (20:03 +0000)
committerReedy <reedy@wikimedia.org>
Thu, 2 Feb 2017 21:23:36 +0000 (21:23 +0000)
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

index d841681..48a9f94 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;
        }