maintenance: Script to rename titles for Unicode uppercasing changes
[lhc/web/wiklou.git] / includes / libs / replacers / Replacer.php
index 3b97835..5425eed 100644 (file)
 /**
  * Base class for "replacers", objects used in preg_replace_callback() and
  * StringUtils::delimiterReplaceCallback()
+ *
+ * @deprecated since 1.32, use a Closure instead
  */
 abstract class Replacer {
        /**
         * @return array
         */
        public function cb() {
-               return [ &$this, 'replace' ];
+               wfDeprecated( __METHOD__, '1.32' );
+               return [ $this, 'replace' ];
        }
 
        /**