dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
407155c
)
rcfeed: FormattedRCFeed constructor should match parent class
author
Timo Tijhof
<krinklemail@gmail.com>
Thu, 2 Feb 2017 20:03:27 +0000
(20:03 +0000)
committer
Reedy
<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
patch
|
blob
|
history
diff --git
a/includes/rcfeed/FormattedRCFeed.php
b/includes/rcfeed/FormattedRCFeed.php
index
d841681
..
48a9f94
100644
(file)
--- 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;
}