Merge "Simplify HTMLTitleTextField::validate"
[lhc/web/wiklou.git] / includes / tidy / RaggettBase.php
index 245982e..878099f 100644 (file)
@@ -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
         */