Merge "user: Allow "CAS update failed" exceptions to be normalised"
[lhc/web/wiklou.git] / includes / tidy / RaggettInternalPHP.php
index 1ce14b6..c1050cc 100644 (file)
@@ -2,6 +2,9 @@
 
 namespace MediaWiki\Tidy;
 
+/**
+ * @deprecated since 1.32, use RemexDriver
+ */
 class RaggettInternalPHP extends RaggettBase {
        /**
         * Use the HTML tidy extension to use the tidy library in-process,
@@ -9,7 +12,7 @@ class RaggettInternalPHP extends RaggettBase {
         *
         * @param string $text HTML to check
         * @param bool $stderr Whether to read result from error status instead of output
-        * @param int &$retval Exit code (-1 on internal error)
+        * @param int|null &$retval Exit code (-1 on internal error)
         * @return string|null
         */
        protected function cleanWrapped( $text, $stderr = false, &$retval = null ) {
@@ -32,7 +35,7 @@ class RaggettInternalPHP extends RaggettBase {
                $retval = $tidy->getStatus();
                if ( $retval == 2 ) {
                        // 2 is magic number for fatal error
-                       // http://www.php.net/manual/en/function.tidy-get-status.php
+                       // https://secure.php.net/manual/en/tidy.getstatus.php
                        $cleansource = null;
                } else {
                        $cleansource = tidy_get_output( $tidy );