wfDeprecated( __METHOD__ . ' without an $argId', '1.33' );
}
- return $this->hasArg( $argId ) ? $this->mArgs[$argId] : $default;
+ return $this->mArgs[$argId] ?? $default;
}
/**
}
/**
- * @var $child Maintenance
+ * @var Maintenance $child
*/
$child = new $maintClass();
$child->loadParamsAndArgs( $this->mSelf, $this->mOptions, $this->mArgs );
if ( $wgDBservers ) {
/**
- * @var $wgDBservers array
+ * @var array $wgDBservers
*/
foreach ( $wgDBservers as $i => $server ) {
$wgDBservers[$i]['user'] = $wgDBuser;