* @return int Page ID or zero
*/
public function addLink( $title ) {
+ wfDeprecated( __METHOD__, '1.27' );
$nt = Title::newFromDBkey( $title );
if ( !$nt ) {
return 0;
/**
* @param WANObjectCache $cache
- * @param TitleValue $t
+ * @param LinkTarget $t
* @return string[]
* @since 1.28
*/
- public function getMutableCacheKeys( WANObjectCache $cache, TitleValue $t ) {
+ public function getMutableCacheKeys( WANObjectCache $cache, LinkTarget $t ) {
if ( $this->isCacheable( $t ) ) {
return [ $cache->makeKey( 'page', $t->getNamespace(), sha1( $t->getDBkey() ) ) ];
}