Merge "auth: Follow up on e907d4328dc3e"
[lhc/web/wiklou.git] / includes / cache / LinkCache.php
index 260038a..b9944a8 100644 (file)
@@ -197,6 +197,7 @@ class LinkCache {
         * @return int Page ID or zero
         */
        public function addLink( $title ) {
+               wfDeprecated( __METHOD__, '1.27' );
                $nt = Title::newFromDBkey( $title );
                if ( !$nt ) {
                        return 0;
@@ -283,11 +284,11 @@ class LinkCache {
 
        /**
         * @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() ) ) ];
                }