[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
parent 4c1fc40c43
commit df5e7b139a
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
1 changed files with 2 additions and 2 deletions

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);