diff --git a/src/Core/GSFile.php b/src/Core/GSFile.php index 9ae0d1f57c..5fa67ae4d8 100644 --- a/src/Core/GSFile.php +++ b/src/Core/GSFile.php @@ -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);