deprecated. Use MediaWikiServices instead.
* The getSubjectPage, getTalkPage, and getOtherPage of Title are deprecated.
Use NamespaceInfo's getSubjectPage, getTalkPage, and getAssociatedPage.
+* MWMessagePack class, no longer used, has been deprecated in 1.34.
=== Other changes in 1.34 ===
* …
*
* @since 1.23
* @file
+ * @deprecated since 1.34, no longer used
*/
class MWMessagePack {
/** @var bool|null Whether current system is bigendian. **/
* (both indexed and associative) types. Object serialization is not
* supported.
*
+ * @deprecated since 1.34, no longer used
+ *
* @param mixed $value
* @return string
* @throws InvalidArgumentException if $value is an unsupported type or too long a string
*/
public static function pack( $value ) {
+ wfDeprecated( __METHOD__, '1.34' );
if ( self::$bigendian === null ) {
self::$bigendian = pack( 'S', 1 ) === pack( 'n', 1 );
}
* PHP Unit tests for MWMessagePack
* @covers MWMessagePack
*/
-class MWMessagePackTest extends PHPUnit\Framework\TestCase {
+class MWMessagePackTest extends MediaWikiTestCase {
use MediaWikiCoversValidator;
* @dataProvider providePacks
*/
public function testPack( $type, $value, $expected ) {
+ $this->hideDeprecated( MWMessagePack::class . '::pack' );
$actual = bin2hex( MWMessagePack::pack( $value ) );
$this->assertEquals( $expected, $actual, $type );
}