Breaking: #105686 - Avoid obsolete $charset in sanitizeFileName()
See forge#105686
Description
The interface
\TYPO3\ has been updated.
The method signature
public function sanitizeFileName(string $fileName, string $charset = ''): string
has been simplified to:
public function sanitizeFileName(string $fileName): string
Implementing classes no longer need to handle a second argument.
Impact
This change has little to no impact, since the main API caller - the Core
class
Resource - never passed a
second argument. The default implementation,
Local, has therefore always
behaved as if handling UTF-8 strings.
Affected installations
TYPO3 installations with custom File Abstraction Layer (FAL) drivers
implementing
Driver may
be affected.
Migration
Implementing classes should drop support for the second argument. Retaining it
does not cause a conflict with the interface, but the TYPO3 Core will never
call
sanitize with a second parameter.