diff options
author | Thiemo Kreuz <thiemo.kreuz@wikimedia.de> | 2021-05-12 10:47:18 +0200 |
---|---|---|
committer | Thiemo Kreuz <thiemo.kreuz@wikimedia.de> | 2021-05-12 13:44:28 +0200 |
commit | 6805f39a305c32ffdee0980758c231ed6e244406 (patch) | |
tree | bd7d76f828976e3414c3930d3f9221e6b00d3e0b /includes/api/ApiOpenSearchFormatJson.php | |
parent | 64b8677ca2c2a2e27872620cd8d9917b03fb0ca8 (diff) | |
download | mediawikicore-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/api/ApiOpenSearchFormatJson.php')
-rw-r--r-- | includes/api/ApiOpenSearchFormatJson.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiOpenSearchFormatJson.php b/includes/api/ApiOpenSearchFormatJson.php index b1903f206050..ab46074b93a3 100644 --- a/includes/api/ApiOpenSearchFormatJson.php +++ b/includes/api/ApiOpenSearchFormatJson.php @@ -26,7 +26,7 @@ * @ingroup API */ class ApiOpenSearchFormatJson extends ApiFormatJson { - private $warningsAsError = false; + private $warningsAsError; public function __construct( ApiMain $main, $fm, $warningsAsError ) { parent::__construct( $main, "json$fm" ); |