wiki.techinc.nl/includes/parser
Kevin Israel 93fc424fc1 StringUtils: Deprecate Replacer classes
The Replacer classes were added in 1.9, when MediaWiki supported PHP 5.0
and 5.1. They were designed to be used with preg_replace_callback() and
StringUtils::delimiterReplaceCallback(). Now that Closures exist in PHP
5.3 and newer, there is no need to define a class for this purpose.

All existing Replacer subclasses are simple enough that their few uses
can easily be replaced with Closures, without making the code harder to
understand. In fact, the code probably becomes easier to understand, as
what each match is replaced with becomes more obvious -- no need to
refer to a separate class.

MediaWiki code search finds no uses in extensions. Thus, these classes
are hard deprecated immediately.

Change-Id: I441c21689909fb06a1ea07a305259eeb82cb2345
2018-07-12 10:25:59 -07:00
..
BlockLevelPass.php Cleanup the element matches in doBlockLevels a bit 2018-04-25 13:22:40 -04:00
CacheTime.php Fix PHPDoc type hints in CacheTime, ParserOptions, and related 2018-04-18 15:10:31 +00:00
CoreParserFunctions.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
CoreTagHooks.php Start working on phan-taint-check warnings. Fix minor escaping issues. 2018-07-12 03:26:59 +00:00
DateFormatter.php Remove language as string for DateFormatter::getInstance 2018-04-19 18:09:16 +00:00
LinkHolderArray.php StringUtils: Deprecate Replacer classes 2018-07-12 10:25:59 -07:00
MWTidy.php tidy: Remove obsolete Depurate and Balancer drivers 2018-05-08 15:32:49 +00:00
Parser.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
ParserCache.php Fix PHPDoc type hints in CacheTime, ParserOptions, and related 2018-04-18 15:10:31 +00:00
ParserDiffTest.php Get rid of call_user_func(_array)(), part 3 2018-06-10 02:21:24 +00:00
ParserOptions.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
ParserOutput.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
Preprocessor.php Use PHP 5.6 constant expressions for some bitfield constants 2018-05-30 18:05:18 -07:00
Preprocessor_DOM.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
Preprocessor_Hash.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
RemexStripTagHandler.php
Sanitizer.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
StripState.php Normalize PHPDoc attributes 2018-03-16 22:59:15 -07:00