Merge "Special:Newpages feed now shows first revision instead of latest revision"
[lhc/web/wiklou.git] / includes / tidy / TidyDriverBase.php
index 96ee8c3..6e01894 100644 (file)
@@ -24,10 +24,11 @@ abstract class TidyDriverBase {
         *
         * @param string $text
         * @param string &$errorStr Return the error string
+        * @throws \MWException
         * @return bool Whether the HTML is valid
         */
        public function validate( $text, &$errorStr ) {
-               throw new \MWException( get_class( $this ) . " does not support validate()" );
+               throw new \MWException( static::class . ' does not support validate()' );
        }
 
        /**