wiki.techinc.nl/tests/phpunit/includes/collation
Kevin Israel 72b14c9459 IcuCollation: Remove unnecessary rtrim() and unset()
- MediaWiki no longer supports PHP versions that are old enough to
  include the null terminator in the sort key, so there's no need to
  remove it using rtrim(). See T137642 for more information.
- Simplify prefix comparison by setting the initial value of $prev to
  the empty string rather than false. A PHP array key can only be an
  integer or string, so there's no other reason to check for false.
- $letterMap is unset to "Reduce memory usage before caching", which
  made sense at the time (r80443 / eaeea84b44). In 2a86b5a17a, the
  code was refactored such that $letterMap goes out of scope before we
  save to the cache, so unset() should no longer be needed.

Change-Id: Id99ab3a6a29d037912f4ab3e817dba52d2ac24e8
2022-05-21 02:02:39 -04:00
..
CollationTest.php IcuCollation: Remove unnecessary rtrim() and unset() 2022-05-21 02:02:39 -04:00
CustomUppercaseCollationTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
RemoteIcuCollationTest.php RemoteIcuCollation 2021-12-13 22:13:10 +00:00