/**
* Create "edit section" links?
+ * @deprecated since 1.31, use ParserOutput::getText() options instead.
* @return bool
*/
public function getEditSection() {
/**
* Create "edit section" links?
+ * @deprecated since 1.31, use ParserOutput::getText() options instead.
* @param bool|null $x New value (null is no change)
* @return bool Old value
*/
}
if ( $lang === null ) {
global $wgLang;
+ if ( !StubObject::isRealObject( $wgLang ) ) {
+ $wgLang->_unstub();
+ }
$lang = $wgLang;
}
$this->initialiseFromUser( $user, $lang );
*
* @since 1.30
* @param User|null $user
- * @param Language|null $lang
+ * @param Language|StubObject|null $lang
* @return ParserOptions
*/
public static function newCanonical( User $user = null, $lang = null ) {
'speculativeRevIdCallback' => null,
];
- // @codingStandardsIgnoreStart Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfterAmp
Hooks::run( 'ParserOptionsRegister', [
&self::$defaults,
&self::$inCacheKey,
&self::$lazyOptions,
] );
- // @codingStandardsIgnoreEnd
ksort( self::$inCacheKey );
}