23 use Wikimedia\Assert\Assert;
41 $this->replacements[$code][] = [
$title, $msg ];
46 Assert::parameterType( __CLASS__, $update,
'$update' );
47 '@phan-var self $update';
49 foreach ( $update->replacements as $code => $messages ) {
50 $this->replacements[$code] = array_merge( $this->replacements[$code] ?? [], $messages );
57 $messageCache->refreshAndReplaceInternal( $code,
$replacements );