X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ftidy%2FRaggettBase.php;h=878099ff7d1fa9ed314497fa636f8c855308dc54;hb=67dc9082463b6023fa1e79cc22cec3ac8589b322;hp=245982e43cabbd4b93c4bf7cfc0a0bf75ae9191d;hpb=02415cb826b8eb9a699fd1381f7faeea246cc477;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/tidy/RaggettBase.php b/includes/tidy/RaggettBase.php index 245982e43c..878099ff7d 100644 --- a/includes/tidy/RaggettBase.php +++ b/includes/tidy/RaggettBase.php @@ -4,7 +4,18 @@ namespace MediaWiki\Tidy; use MWException; +/** + * @deprecated since 1.32, use RemexDriver + */ abstract class RaggettBase extends TidyDriverBase { + + function __construct( $config ) { + parent::__construct( $config ); + + // All tidy modes other than remex are deprecated. + wfDeprecated( __METHOD__, '1.32' ); + } + /** * Generic interface for wrapping and unwrapping HTML for Dave Raggett's tidy. * @@ -41,7 +52,7 @@ abstract class RaggettBase extends TidyDriverBase { * Perform a clean/repair operation * @param string $text HTML to check * @param bool $stderr Whether to read result from STDERR rather than STDOUT - * @param int &$retval Exit code (-1 on internal error) + * @param int|null &$retval Exit code (-1 on internal error) * @return null|string * @throws MWException */