wiki.techinc.nl/includes/utils
Ori Livneh 7c9e19ed5e mime: Document null return from MimeAnalyzer::improveTypeFromExtension()
This method returns null when $mime is 'unknown/unknown' and the file
extension is unknown to MediaWiki. The inline documentation and @return
annotation omitted this.

I don't think this was an intentional design choice, but it's the
existing behavior and I'm not sure it's safe to change.

Since it is the existing behavior, document it and add a test case, to
ensure that any changes to this behavior are intentional.

Bug: T253483
Change-Id: Ie6615a4bd9ae77e9ab59cfe76edb237cace693b1
2020-05-24 15:51:08 -04:00
..
AutoloadGenerator.php Cleanup AutoloadGenerator 2020-05-09 23:11:52 +00:00
AvroValidator.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
BatchRowIterator.php doxygen: Changed Doxygen tags causing warnings during documentation generation 2020-04-14 03:25:19 +00:00
BatchRowUpdate.php doxygen: Changed Doxygen tags causing warnings during documentation generation 2020-04-14 03:25:19 +00:00
BatchRowWriter.php doxygen: Changed Doxygen tags causing warnings during documentation generation 2020-04-14 03:25:19 +00:00
ClassCollector.php Fix the namespace of SpecialPageFactory 2020-02-21 13:46:19 +11:00
ExecutableFinder.php
FileContentsHasher.php
MWCryptHKDF.php
MWCryptRand.php
MWFileProps.php mime: Document null return from MimeAnalyzer::improveTypeFromExtension() 2020-05-24 15:51:08 -04:00
MWRestrictions.php
README
RowUpdateGenerator.php
UIDGenerator.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:51:46 +01:00
ZipDirectoryReader.php Add missing visibility on methods of class ZipDirectoryReader 2020-05-10 22:11:59 +00:00
ZipDirectoryReaderError.php Add missing visibility on methods of class ZipDirectoryReader 2020-05-10 22:11:59 +00:00

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
MWException, 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.