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