aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/ReplacementArray.php
diff options
context:
space:
mode:
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>2021-05-12 10:47:18 +0200
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>2021-05-12 13:44:28 +0200
commit6805f39a305c32ffdee0980758c231ed6e244406 (patch)
treebd7d76f828976e3414c3930d3f9221e6b00d3e0b /includes/libs/ReplacementArray.php
parent64b8677ca2c2a2e27872620cd8d9917b03fb0ca8 (diff)
downloadmediawikicore-6805f39a305c32ffdee0980758c231ed6e244406.tar.gz
mediawikicore-6805f39a305c32ffdee0980758c231ed6e244406.zip
Remove unused default values from class properties
In all these cases the property is unconditionally set in the constructor. The extra initialisation is effectively dead code and an extra source of errors and confusion. Change-Id: Icae13390d5ca5c14e2754f3be4eb956dd7f54ac4
Diffstat (limited to 'includes/libs/ReplacementArray.php')
-rw-r--r--includes/libs/ReplacementArray.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/libs/ReplacementArray.php b/includes/libs/ReplacementArray.php
index 46f9358b635d..d40c028a5056 100644
--- a/includes/libs/ReplacementArray.php
+++ b/includes/libs/ReplacementArray.php
@@ -22,7 +22,7 @@
* Wrapper around strtr() that holds replacements
*/
class ReplacementArray {
- private $data = [];
+ private $data;
/**
* Create an object with the specified replacement array