Applying static analysis to mediawiki core found a short list of classes
that were undefined. Fix those up.
Change-Id: Ib7f9dbd847ada287b35afb799782fc04a3b39ce4
* @warning This will be called early during MediaWiki startup. Do not
* use $wgUser, $wgLang, $wgOut, $wgParser, or their equivalents via
* RequestContext from this method!
- * @return Message
+ * @return \Message
*/
protected function describeMessage() {
return wfMessage(
*/
protected function cleanWrapped( $text, $stderr = false, &$retval = null ) {
if ( $stderr ) {
- throw new Exception( "\$stderr cannot be used with RaggettInternalHHVM" );
+ throw new \Exception( "\$stderr cannot be used with RaggettInternalHHVM" );
}
$cleansource = tidy_repair_string( $text, $this->config['tidyConfigFile'], 'utf8' );
if ( $cleansource === false ) {
* @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( get_class( $this ) . " does not support validate()" );
}
/**
/**
* Return a singleton instance, based on the global configs.
- * @return HKDF
+ * @return self
* @throws MWException
*/
protected static function singleton() {