public function salvage( SalvageableService $other ) {
Assert::parameterType( self::class, $other, '$other' );
- /** @var ConfigFactory $other */
+ /** @var self $other */
+ '@phan-var self $other';
foreach ( $other->factoryFunctions as $name => $otherFunc ) {
if ( !isset( $this->factoryFunctions[$name] ) ) {
continue;
*/
public function salvage( SalvageableService $other ) {
Assert::parameterType( self::class, $other, '$other' );
+ /** @var self $other */
+ '@phan-var self $other';
foreach ( $other->configItems['public'] as $name => $otherConfig ) {
if ( isset( $this->configItems['public'][$name] ) ) {
}
public function merge( MergeableUpdate $update ) {
- /** @var CdnCacheUpdate $update */
+ /** @var self $update */
Assert::parameterType( __CLASS__, $update, '$update' );
+ '@phan-var self $update';
$this->urls = array_merge( $this->urls, $update->urls );
}
}
public function merge( MergeableUpdate $update ) {
- /** @var JobQueueEnqueueUpdate $update */
+ /** @var self $update */
Assert::parameterType( __CLASS__, $update, '$update' );
+ '@phan-var self $update';
foreach ( $update->jobsByDomain as $domain => $jobs ) {
$this->jobsByDomain[$domain] = $this->jobsByDomain[$domain] ?? [];
}
public function merge( MergeableUpdate $update ) {
- /** @var MessageCacheUpdate $update */
+ /** @var self $update */
Assert::parameterType( __CLASS__, $update, '$update' );
+ '@phan-var self $update';
foreach ( $update->replacements as $code => $messages ) {
$this->replacements[$code] = array_merge( $this->replacements[$code] ?? [], $messages );
public function merge( MergeableUpdate $update ) {
/** @var SiteStatsUpdate $update */
Assert::parameterType( __CLASS__, $update, '$update' );
+ '@phan-var SiteStatsUpdate $update';
foreach ( self::$counters as $field ) {
$this->$field += $update->$field;
public function merge( MergeableUpdate $update ) {
/** @var UserEditCountUpdate $update */
Assert::parameterType( __CLASS__, $update, '$update' );
+ '@phan-var UserEditCountUpdate $update';
foreach ( $update->infoByUser as $userId => $info ) {
if ( !isset( $this->infoByUser[$userId] ) ) {
* 1 => object(StatusValue) # The StatusValue with warning messages, only
* ]
*
- * @return StatusValue[]
+ * @return static[]
*/
public function splitByErrorType() {
$errorsOnlyStatusValue = clone $this;