SearchEngine: Followup on I623b39e7ec791a66c4cf40
authorDerick Alangi <alangiderick@gmail.com>
Thu, 9 May 2019 14:42:14 +0000 (15:42 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Thu, 9 May 2019 14:54:56 +0000 (15:54 +0100)
Per https://www.mediawiki.org/wiki/Deprecation_policy#Deprecation,
the version for hard deprecation must be exactly the same as the
one it was soft deprecated in.

Bug: T221431
Change-Id: Ib7c2b569959194e15f50c62fe0eca1c3011bc50e

includes/search/PrefixSearch.php
includes/search/SearchEngine.php

index a7d475e..3b7a0a9 100644 (file)
@@ -41,7 +41,7 @@ abstract class PrefixSearch {
         * @return array Array of strings
         */
        public static function titleSearch( $search, $limit, $namespaces = [], $offset = 0 ) {
-               wfDeprecated( __METHOD__, '1.34' );
+               wfDeprecated( __METHOD__, '1.23' );
                $prefixSearch = new StringPrefixSearch;
                return $prefixSearch->search( $search, $limit, $namespaces, $offset );
        }
index 65a3e6a..b99c0d3 100644 (file)
@@ -245,7 +245,7 @@ abstract class SearchEngine {
         * search engine
         */
        public function transformSearchTerm( $term ) {
-               wfDeprecated( __METHOD__, '1.34' );
+               wfDeprecated( __METHOD__, '1.32' );
                return $term;
        }