/**
* Lazy-loaded options
- * @var callback[]
+ * @var callable[]
*/
private static $lazyOptions = [
'dateformat' => [ __CLASS__, 'initDateFormat' ],
/**
* Lazy initializer for dateFormat
+ * @param ParserOptions $popt
+ * @return string
*/
- private static function initDateFormat( $popt ) {
+ private static function initDateFormat( ParserOptions $popt ) {
return $popt->mUser->getDatePreference();
}
// *UPDATE* ParserOptions::matches() if any of this changes as needed
self::$defaults = [
'dateformat' => null,
- 'tidy' => false,
+ 'tidy' => true,
'interfaceMessage' => false,
'targetLanguage' => null,
'removeComments' => true,
global $wgEnableParserLimitReporting;
return [
- 'tidy' => true,
'enableLimitReport' => $wgEnableParserLimitReporting,
];
}