[CORE][GSFile] ensureFilenameWithProperExtension: extension isn't an I/O param

This commit is contained in:
Diogo Peralta Cordeiro 2021-08-14 15:05:56 +01:00 committed by Hugo Sales
parent 728f8d8fb8
commit b4a03b814f
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -231,9 +231,9 @@ class GSFile
* @param null|string $ext Extension we believe to be best
* @param bool $force Should we force the extension we believe to be best? Defaults to false
*
* @return null|string
* @return null|string the most appropriate filename or null if we deem it imposible
*/
public static function ensureFilenameWithProperExtension(string $title, string $mimetype, ?string &$ext = null, bool $force = false): string | null
public static function ensureFilenameWithProperExtension(string $title, string $mimetype, ?string $ext = null, bool $force = false): string | null
{
$valid_extensions = MimeTypes::getDefault()->getExtensions($mimetype);