X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2FMWMessagePack.php;h=107672e3615f0c773b273433fb372cf15b4c1ad5;hp=be7e93d53e2621983ebfcc304f64b7f16bbafda4;hb=2664eeb6325b7c662faa813c99487b1a479299e5;hpb=fd3773685b887dc2b4fa856907a9cf5229df74ac diff --git a/includes/libs/MWMessagePack.php b/includes/libs/MWMessagePack.php index be7e93d53e..107672e361 100644 --- a/includes/libs/MWMessagePack.php +++ b/includes/libs/MWMessagePack.php @@ -31,9 +31,10 @@ * * @since 1.23 * @file + * @deprecated since 1.34, no longer used */ class MWMessagePack { - /** @var bool|null Whether current system is bigendian. **/ + /** @var bool|null Whether current system is bigendian. */ public static $bigendian = null; /** @@ -43,11 +44,14 @@ class MWMessagePack { * (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 ); }