SearchEngine::getNearMatch(), methods deprecated in 1.27, have been removed.
* FileRepo::streamFile(), deprecated in 1.26, has been removed.
* User::randomPassword() method, deprecated in 1.27, have been removed.
+* MWNamespace::canTalk(), deprecated in 1.30, have been removed.
=== Deprecations in 1.34 ===
* The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo.
return MediaWikiServices::getInstance()->getNamespaceInfo()->getValidNamespaces();
}
- /**
- * Does this namespace ever have a talk namespace?
- *
- * @deprecated since 1.30, use hasTalkNamespace() instead.
- *
- * @param int $index Namespace index
- * @return bool True if this namespace either is or has a corresponding talk namespace.
- */
- public static function canTalk( $index ) {
- wfDeprecated( __METHOD__, '1.30' );
- return self::hasTalkNamespace( $index );
- }
-
/**
* Does this namespace ever have a talk namespace?
*
$this->assertSame( $actual, $expected, "NS $index" );
}
- /**
- * @dataProvider provideHasTalkNamespace
- * @covers MWNamespace::canTalk
- *
- * @param int $index
- * @param bool $expected
- */
- public function testCanTalk( $index, $expected ) {
- $this->hideDeprecated( 'MWNamespace::canTalk' );
- $actual = MWNamespace::canTalk( $index );
- $this->assertSame( $actual, $expected, "NS $index" );
- }
-
private function assertIsContent( $ns ) {
$this->assertTrue( $this->obj->isContent( $ns ) );
}