"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/phpunit/mocks/MockMessageLocalizer.php" between
mediawiki-1.31.1.tar.gz and mediawiki-1.32.0.tar.gz

About: MediaWiki is a wiki engine (the collaborative editing software that runs for e.g. Wikipedia, the free encyclopedia).

MockMessageLocalizer.php  (mediawiki-1.31.1):MockMessageLocalizer.php  (mediawiki-1.32.0)
skipping to change at line 40 skipping to change at line 40
* *
* @param string|string[]|MessageSpecifier $key Message key, or array of keys, * @param string|string[]|MessageSpecifier $key Message key, or array of keys,
* or a MessageSpecifier. * or a MessageSpecifier.
* @param mixed $args,... * @param mixed $args,...
* @return Message * @return Message
*/ */
public function msg( $key ) { public function msg( $key ) {
$args = func_get_args(); $args = func_get_args();
/** @var Message $message */ /** @var Message $message */
$message = call_user_func_array( 'wfMessage', $args ); $message = wfMessage( ...$args );
if ( $this->languageCode !== null ) { if ( $this->languageCode !== null ) {
$message->inLanguage( $this->languageCode ); $message->inLanguage( $this->languageCode );
} }
return $message; return $message;
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)