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 |
||
|---|---|---|
| .. | ||
| api-testing | ||
| common | ||
| integration/includes | ||
| parser | ||
| phan | ||
| phpunit | ||
| qunit | ||
| selenium | ||
| .htaccess | ||