wiki.techinc.nl/includes/utils
Bartosz Dziewoński f32446684a GitInfo: Fix Phan warning on Windows
On my Windows machine, I was getting the following Phan warning:

includes\utils\GitInfo.php:159 UnusedPluginSuppression
  Plugin BuiltinSuppressionPlugin suppresses issue
  PhanPluginDuplicateArrayKey on this line but this
  suppression is unused or suppressed elsewhere

Indeed, this isn't a PhanPluginDuplicateArrayKey issue on Windows,
since DIRECTORY_SEPARATOR is `\`; but it is a legitimate warning
on other systems where DIRECTORY_SEPARATOR is `/`.

Refactor the code slightly so as to not create an array with
potentially duplicate keys.

Change-Id: I4be38aa9fefde26d58139d74a85359961229baec
2024-04-05 23:12:02 +02:00
..
AutoloadGenerator.php build: Upgrade mediawiki/mediawiki-phan-config from 0.13.0 to 0.14.0 manually 2024-02-10 02:22:41 +00:00
BatchRowIterator.php Use more narrow IReadableDatabase in BatchRowIterator 2023-05-19 15:02:50 +02:00
BatchRowUpdate.php
BatchRowWriter.php Change more uses of getDBLoadBalancerFactory() to getConnectionProvider() 2024-01-23 16:34:45 +01:00
ClassCollector.php Miscellaneous PHP version related cleanups 2022-11-21 10:11:53 +11:00
ExecutableFinder.php utils: Use str_starts_with/str_ends_with/str_contains 2022-10-04 23:09:44 +02:00
ExtensionInfo.php Standardise all our class alias deprecation comments for ease of grepping 2024-03-19 20:11:29 +00:00
FileContentsHasher.php resourceloader: Remove support for $algo param in FileContentsHasher 2021-12-03 12:12:29 +00:00
GitInfo.php GitInfo: Fix Phan warning on Windows 2024-04-05 23:12:02 +02:00
MWCryptHKDF.php Fix typos in comments (M) 2022-01-09 23:00:20 +05:30
MWCryptRand.php
MWFileProps.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
MWRestrictions.php Allow setting page restrictions on BotPassword grants 2023-12-05 14:51:06 +05:30
MWTimestamp.php Standardise all our class alias deprecation comments for ease of grepping 2024-03-19 20:11:29 +00:00
README Replace deprecated MWException 2024-01-16 21:04:33 +01:00
RowUpdateGenerator.php
UIDGenerator.php
UrlUtils.php build: Upgrade mediawiki/mediawiki-phan-config from 0.13.0 to 0.14.0 manually 2024-02-10 02:22:41 +00:00
ZipDirectoryReader.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
ZipDirectoryReaderError.php

The classes in this directory are general utilities for use by any part of
MediaWiki. They do not favour any particular user interface and are not
constrained to serve any particular feature. This is similar to includes/libs,
except that some dependency on the MediaWiki framework (such as the use of
Status or wfDebug()) disqualifies them from use outside of
MediaWiki without modification.

Utilities should not use global configuration variables, rather they should rely
on the caller to configure their behaviour.