X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Ftidy%2FTidyDriverBase.php;h=6e01894008c80898750329a669eb4da7a9e42c32;hb=70d904b5bd04deb758272fc897d52e83a4141104;hp=96ee8c394f6c9e5f4222514be5b1327096c9980f;hpb=a5be382adfdad4678eec18413c6a118cb3284daf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/tidy/TidyDriverBase.php b/includes/tidy/TidyDriverBase.php index 96ee8c394f..6e01894008 100644 --- a/includes/tidy/TidyDriverBase.php +++ b/includes/tidy/TidyDriverBase.php @@ -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()' ); } /**