aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance
diff options
context:
space:
mode:
authorthiemowmde <thiemo.kreuz@wikimedia.de>2024-07-07 16:45:29 +0200
committerthiemowmde <thiemo.kreuz@wikimedia.de>2024-07-07 16:45:29 +0200
commit2cbce841c4d2b1650958a341783869142e3c0dc9 (patch)
tree4327823461be8ae95d40b351c462b624389216c1 /maintenance
parent17079782a776849ec51d5c3d3712edc217cce65b (diff)
downloadmediawikicore-2cbce841c4d2b1650958a341783869142e3c0dc9.tar.gz
mediawikicore-2cbce841c4d2b1650958a341783869142e3c0dc9.zip
maintenance: Hint at better replacements for deprecated fields
I believe these methods are what should be used in maintenance scripts, not anything that literally starts with $this->parameters->… Change-Id: I5a2d19475834386e03146985ed9e5a5cd4ae1c52
Diffstat (limited to 'maintenance')
-rw-r--r--maintenance/includes/Maintenance.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/maintenance/includes/Maintenance.php b/maintenance/includes/Maintenance.php
index 2baadb3238b0..54cafebc1288 100644
--- a/maintenance/includes/Maintenance.php
+++ b/maintenance/includes/Maintenance.php
@@ -96,13 +96,13 @@ abstract class Maintenance {
/**
* @var array This is the list of options that were actually passed
- * @deprecated since 1.39, use $this->parameters instead.
+ * @deprecated since 1.39, use {@see addOption} instead.
*/
protected $mOptions = [];
/**
* @var array This is the list of arguments that were actually passed
- * @deprecated since 1.39, use $this->parameters instead.
+ * @deprecated since 1.39, use {@see addArg} instead.
*/
protected $mArgs = [];
@@ -116,7 +116,7 @@ abstract class Maintenance {
/**
* @var string A description of the script, children should change this via addDescription()
- * @deprecated since 1.39, use $this->parameters instead.
+ * @deprecated since 1.39, use {@see addDescription} instead.
*/
protected $mDescription = '';
@@ -177,7 +177,7 @@ abstract class Maintenance {
* This is an array of arrays where
* 0 => the option and 1 => parameter value.
*
- * @deprecated since 1.39, use $this->parameters instead.
+ * @deprecated since 1.39, use $this->getParameters()->getOptionsSequence() instead.
* @var array
*/
public $orderedOptions = [];