forked from GNUsocial/gnu-social
[CORE][GSFile] ensureFilenameWithProperExtension: extension isn't an I/O param
This commit is contained in:
parent
728f8d8fb8
commit
b4a03b814f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user