X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=blobdiff_plain;f=includes%2Fparser%2FParser.php;h=8e5dcbdab18d9c933563edafa79ecff43c944a47;hb=f0247e05bda76a0c16755c3f11f2c05a88003ce3;hp=c775cd9af757c6b67dd18a5ca92089aeceb8645d;hpb=3dfda8c1552a6d43eaf85e3e38427833114ddf06;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index c775cd9af7..8e5dcbdab1 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5998,11 +5998,13 @@ class Parser { * unserializeHalfParsedText(). The text can then be safely incorporated into * the return value of a parser hook. * + * @deprecated since 1.31 * @param string $text * * @return array */ public function serializeHalfParsedText( $text ) { + wfDeprecated( __METHOD__, '1.31' ); $data = [ 'text' => $text, 'version' => self::HALF_PARSED_VERSION, @@ -6023,11 +6025,13 @@ class Parser { * If the $data array has been stored persistently, the caller should first * check whether it is still valid, by calling isValidHalfParsedText(). * + * @deprecated since 1.31 * @param array $data Serialized data * @throws MWException * @return string */ public function unserializeHalfParsedText( $data ) { + wfDeprecated( __METHOD__, '1.31' ); if ( !isset( $data['version'] ) || $data['version'] != self::HALF_PARSED_VERSION ) { throw new MWException( __METHOD__ . ': invalid version' ); } @@ -6048,11 +6052,13 @@ class Parser { * serializeHalfParsedText(), is compatible with the current version of the * parser. * + * @deprecated since 1.31 * @param array $data * * @return bool */ public function isValidHalfParsedText( $data ) { + wfDeprecated( __METHOD__, '1.31' ); return isset( $data['version'] ) && $data['version'] == self::HALF_PARSED_VERSION; }